| 1. |
Solve : How to send an already active program commands through a batch file?? |
|
Answer» I've been working on getting this server running all night, and I could spend the next several hours typing in each command I want it to do ONE at a time and would need to do that again the next time, however I FEEL that there's an easier way. I've spent about an hour looking through commands and other peoples advice, but I haven't seen anything close enough that I could USE. echo <command> It's very simple. I have it saved as a txt at the moment, but changing that to an ext isn't an issue.Sendkeys in a VBS script or AutoIt can both enter text into active program windows.Not sure if you can do that via .BAT... but I use AutoHotkey for that. http://www.autohotkey.com/docs/commands/Send.htm The scripts are really easy to write. I can paste a little sample if you'd like... or you can look in their archives I believe. - kyle_engineer |
|