I worked on what happened last week.
CGEventSourceRef source = CGEventSourceCreate(kCGEventSourceStateCombinedSessionState); CGEventRef mouse = CGEventCreateMouseEvent (NULL, kCGEventMouseMoved, CGPointMake( X, Y), 0); CGEventPost(kCGHIDEventTap, mouse); CFRelease(mouse); CFRelease(source);
Just set X and Y.
EDIT:
#include <ApplicationServices/ApplicationServices.h>
sergiobuj
source share