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:

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

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")).