Start Example

 

This example will attempt to open notepad and send a series of keystrokes to it.

 

Sub Main

 'This script will start Notepad and then type some text and then access the file menu

 Action.Start("Notepad","","0","")

 Wait 1

 Action.SendKeys("1","100","These are the keys to be sent~")

 Wait 1

 Action.SendKeys("1","500","You can also use AutoMate keystroke commands like ALT{+}F~")

 Wait 1

 Action.SendKeys("1","500","Watch as AutoMate accesses the File Menu and chooses save")

 Wait 2

 Action.SendKeys("1","500","%fs")

End Sub