Perhaps http://www.autoitscript.com/autoit3/
AutoIt v3 is an opensource BASIC-like scripting language designed for automating
the Windows GUI.
It uses a combination of simulated keystrokes, mouse movement and window/control
manipulation in order to automate tasks in a way not possible or reliable with
other languages.