Game scripting

Hi,

I’m trying to write a macro for a game under Mac OS X but am not sure if ActionScript is what I need for the job. Basically, what the macro has to do is equivalent to:

  1. press a key down
  2. wait for a graphical event (a colored spot) to appear
  3. detect the on-screen coordinates of the spot (based on the RGB pixel value)
  4. shift-right-click (or shift-control-click) on the spot

Is ActionScript what I need? If so, where could I look for more information (GUI scripting from accessibility framework does not seem to suit these needs)?

Any other suggestion would be greatly appreciated.

Thanks a lot in advance :slight_smile: