Code:
Include:CGEventSourceRef source = CGEventSourceCreate(kCGEventSourceStateCombinedSessionState); CGEventRef mouse = CGEventCreateMouseEvent (NULL, kCGEventMouseMoved, CGPointMake( X, Y), 0); CGEventPost(kCGHIDEventTap, mouse); CFRelease(mouse); CFRelease(source);
#include <ApplicationServices/ApplicationServices.h>
You just set the X and Y.
No comments:
Post a Comment