I want to "simulate" a multi-touch event for another application, for example, simulate a zoom gesture on iPhoto. I have searched many sources, but cannot find an answer for this.
It seems the most common way to send an event to another application is to bridge the script, receive SBApplication, and send JavaEvent. But it seems that a common gesture or multi-touch events do not exist for regular applications.
Also, there is no function like CGEventCreateMultiTouchEvent ... (), so I don't know if CGEventPost () is achievable
The NSApplication.sendEvent method can send an NSEvent with a specific type of multi touch. But how can I get NSApplication * of another application?
Any help would be greatly appreciated :)
source
share