It isn't used in this case, but Autohotkey is quite a popular scripting/macro language that allows you to simulate mouse and keyboard use programmatically. It's cross platform, and can be run straight through the interpreter or compiled into native executables on many platforms by bundling the interpreter.