Automate Windows Applications

Automa can be used to automate standard Windows applications, such as Notepad. The following script creates a new text file using Notepad and saves it in a new folder on the desktop:

start("Notepad")
write("Hello World!")
click("File", "Save")
click("New folder") # Or "Create new folder" on XP
# Enter folder name:
write("Automa test")
press(ENTER)
# Change folder name:
rightclick("Automa test", select="Properties")
write("Automa examples", into="Folder name")
click("OK")
doubleclick("Automa examples")
write("Notepad example.txt", into="File name")
click("Save")
click("File", "Exit")
Notepad.at

The script has been written for Windows 7. In order for it to work on Windows XP, please change click(Button("New folder")) to click(Button("Create new folder")).