waSendKeys: new Winadmin script

winadmin tools
Over on the brand new, freshly painted Winadmin scripts site:
waSendKeys.wsf 1.0 was just released.

This one will start a program and send keystrokes to it. Use it to automate programs that only have an interactive user interface and do not support command-line parameters: defrag tools, export to CSV/HTML, … You can also use this script in a scheduled task!

Examples:
waSendkeys D:foo.exe /wait:20 /keys:"{F9};^R;test;{ENTER};%{F4}"
:: will send F9, CTRL+R, “test”, ENTER And ALT-F4

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.