On 08.11.2018 16:13, Peter Holmes wrote:
> Thank you for that. However still doesn't do what I need.
> I didn't explain well.
> I need to be able to pass an ESC directly to the running program.
> With WSH (or nircmd) it doesn't seem possible but thanks again for your suggestions.
You could try a stand alone program like
http://cpap.com.br/orlando/SendKeysMore.asp
| It’s also interesting to be called from the dialog box of Windows
| Run command, from Windows Shortcuts, and from scripts that haven’t
| SendKeys statement like command lines in Windows console (CMD batch
| file, DOS BAT).
|
| Features:
|
| - Can be defined a wait in seconds before to start the keystroke sending
|
| - Can be defined a wait in seconds to give up, if the target windows aren't found
|
| - The target window can be the active windows or one with defined title
Or ask in a batch forum (usenet is pretty dead these days)