Thanks. That was useful.
Looks like the answer is to use CGEventCreateMouseEvent.
The following stackoverflow question might be of interest to some:
http://stackoverflow.com/questions/1483657/performing-a-double-click-using-cgeventcreatemouseevent
> Whether it matters or not depends on the circums
Whether it matters or not depends on the circumstances and requirements.
In case of making a complete remote-control application, there are some issues
(at least on 10.5, don't know whether anything changed on 10.6).
See this thread on quartz-dev:
http://lists.apple.com/archives/quartz-dev/201
It's straightforward to create a mouse event using NSEvent's mouseEventWithType
method. The only question I have is what should I be passing in for the
eventNumber parameter? 0? 1? some other number? Does it
matter?___
Cocoa-dev mailing list (Cocoa-de