mouseControl v0128 January 2012
i’ve been working on the eyeWriter project with zach for the past couple months, and one thing we are implementing is mouse control. so I started writing a class that can control your mouse using obj-c and quartz events.
Here’s a simulation demo, where i use the keyboard to move the mouse (you can tell it’s only moving 10px at a time, up, down, left or right), then clicking (’1′ and ’2′ for left and right click) and dragging. Then I enter a simulation mode where the mouse autonomously navigates to and clicks on each rectangle, then clicks outside of the app, clicks on the os x menu, then “about this mac”, then closes that window.
code on github: http://github.com/jmsaavedra/mouseControl
quartz event dev reference can be found here.