Windows Software: Add powerful scripting to Windows with AutoIt
Batch scripts are a quick and easy way to incorporate some basic scripts into Windows. Sometimes you may want a more powerful scripting tool, which will let you do a whole lot more.
AutoIt is a scripting language for Windows. You can use it to create very basic scripts, or complex utilities with GUI interfaces. It can help you do a great deal of things.
Below is an example of some code that will load up Notepad and enter some text.
Run("notepad.exe")
WinWaitActive("Untitled - Notepad")
Send("This is some text.")
WinClose("Untitled - Notepad")
WinWaitActive("Notepad", "Do you want to save")
Send("!n")
This example closes down and cancels the save dialog. It’s not too complicated, hey? Sorry this example is not at all useful in a practical situation.
AutoIt scripts can be run from any computer where AutoIt has been installed. Even better is the feature where you can export your script into an executable(exe) file. This is an ideal option for creating a working environment.
This is one the most basic scripting languages I have looked at. Some commands can be picked up by a beginner easily, but others do require a lot more knowledge. As with most languages, copying and editing scripts that have already been written is often the best way to go, especially if you are learning the ropes.
AutoIt runs on all versions of Windows, and is available for free from AutoItScript.com.
Thanks to Murphy for the tip.