Skip to content

Instantly share code, notes, and snippets.

@atao
Created July 3, 2017 22:28
Show Gist options
  • Save atao/7a7d135fe3975192412c5e0ab8e8c570 to your computer and use it in GitHub Desktop.
Save atao/7a7d135fe3975192412c5e0ab8e8c570 to your computer and use it in GitHub Desktop.
Test script to emulate keyboard...
'https://msdn.microsoft.com/en-us/library/office/aa202943%28v=office.10%29.aspx'
Set objShell = CreateObject("WScript.Shell")
WScript.Sleep 800
objShell.SendKeys "^{ESC}"
WScript.Sleep 800
objShell.SendKeys "cmd"
'objShell.SendKeys "^+{ENTER}"
'objShell.SendKeys "{LEFT}"
WScript.Sleep 800
objShell.SendKeys "{ENTER}"
msgbox "end"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment