AutoHotKey and Pulover's Macro Creator[1] (which spits out AHK scrips from mouse and keyboard input) can do a similar job in a windows environment, and can trivially click on UI elements on the screen via PixelSearch. It runs lightning fast too, and is simple to learn.
I've used it to automate simple web games for shits and giggles.