I wrote this little vbs script to press the left arrow key in my Chrome browser:
set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.AppActivate "Google Chrome"
WshShell.SendKeys "{LEFT}"
But it simulates a keypress with instant releases. Is there also a way to parse the pressed key over a longer time?
(I know that this would be easy to handle in Javascript by the Keypress
even, but I am trying to learn vbs.)