Može ovako:
Code:
AppActivate("Untitled - Notepad")
SendKeys.SendWait("Hello world!")
' Send Ctrl S to open the Save As dialog box.
SendKeys.SendWait("^S")
' Send the name of the new file.
SendKeys.SendWait("c:\HelloWorld.txt")
' Send Alt S to save the file.
SendKeys.SendWait("%S")
A možeš i da koristiš API.
Potrebne su ti funkcije FindWindow i SendMessage.
Naći ćeš negde na net-u kako se koriste.