
Sometimes you may need to use the ALT key to move into the menus.Īlso, you might actually be able to use a series of keyboard commands like ALT+ F S ENTER, or even a keyboard shortcut like CTRL+ S. Usually either tabs and/or arrow-keys will suffice. To get the VBS code to work how you want, you'll need to learn how to navigate around Adobe Air by keyboard. Note that if there is one or more instances of Notepad.exe already open, and it takes more than 5 seconds to open notepad, the above code may select the the last active instance of notepad and type into that. ' Select, or bring Focus to a window named `NOTEPAD` Set WshShell = WScript.CreateObject("WScript.Shell") The following is the contents of LaunchNotepad.vbs : ' Create WScript Shell Object to access filesystem. The following single line is called LaunchNotepad.bat : cscript /nologo LaunchNotepad.vbs I am including an example that launches notepad.exe, then types the following into it: Hello World!

It's been included in every version of Windows since 95. On the Plus side of things, you don't need to download VBS.

There is no native way to do this cleanly.īut you can use VBS to simulate keystrokes if you want, something similar to AutoIT, but nowhere as flexible.
