Auto-It 3 is free:
http://www.autoitscript.com/site/autoit/AutoIt was initially designed for PC “roll out” situations to reliably automate and configure thousands of PCs. Over time it has become a powerful language that supports complex expressions, user functions, loops and everything else that veteran scripters would expect.
Features:
Easy to learn BASIC-like syntax
Simulate keystrokes and mouse movements
Manipulate windows and processes
Interact with all standard windows controls
Scripts can be compiled into standalone executables
Create Graphical User Interfaces (GUIs)
COM support
Regular expressions
Directly call external DLL and Windows API functions
Scriptable RunAs functions
Detailed helpfile and large community-based support forums
Compatible with Windows 2000 / XP / 2003 / Vista / 2008 / Windows 7 / 2008 R2
Unicode and x64 support
Digitally signed for peace of mind
Works with Windows Vista’s User Account Control (UAC)
Window Management
You can expect to move, hide, show, resize, activate, close and pretty much do what you want with windows. Windows can be referenced by title, text on the window, size, position, class and even internal Win32 API handles.
Controls
Directly get information on and interact with edit boxes, check boxes, list boxes, combos, buttons, status bars without the risk of keystrokes getting lost. Even work with controls in windows that aren’t active!
Auto-It has a very active forum, with some of the most pro-active moderation I have ever seen - bans are posted on a public board; in the original post which I quote here, the bold parts are links to the offending behaviour (criticising another member).
example (user "Alupis"):
3 days posting ban.
If a Mod tells you to stop doing something - then stop doing it and do not do it again. It does not matter if you feel it is unfair - this is not a democracy.
It is quite amusing to read the moderation board
http://www.autoitscript.com/forum/forum/28-user-moderation/One way to get a permanent ban is to ignore the rules about game bots (Don't ask how to write one, don't respond with help to people who do). They are very hot on any kind of script kiddie ideas that posters may have, and very very quick to spot those to try to hide what they are really asking about.