|
Answer» Is is possible to use a LOSE Focus/GetFocus command for the current command window?
IE: When this window loses focus, pause the .bat file. When this window gets focus, resume .bat command.
I was thinking along the lines of running a .bat that pops up a message using the MSG command (which would cause the .bat to lose focus). The user would click the OK button and the .bat would resume focus (assuming the user doesn't click anything ELSE) - or could you name the massage window and have the .bat resume when that OK button is pressed?
By the way (or, BTW for those who are fancy), I love these forums! You all have been so much help!Did you try the msg- command with call?
uliUse the /w switch on the msg command. This will FORCE a wait until the msg is answered.
Hope this helps.
Do not confuse this with focus which is implemented in Windows not batch language.
|