Skip to content

Instantly share code, notes, and snippets.

@jutememo
Created September 8, 2012 14:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jutememo/3675595 to your computer and use it in GitHub Desktop.
Save jutememo/3675595 to your computer and use it in GitHub Desktop.
var WshShell = WScript.CreateObject("WScript.Shell");
WshShell.Run(WScript.Arguments.item(0));
WScript.Sleep(500);
WshShell.AppActivate(WScript.Arguments.item(1));
WScript.Sleep(100);
var Keystrokes = WScript.Arguments.item(2)
WshShell.SendKeys(Keystrokes);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment