CGEventSourceRef source = CGEventSourceCreate(kCGEventSourceStateCombinedSessionState);
CGEventRef mouse = CGEventCreateMouseEvent (NULL, kCGEventMouseMoved, CGPointMake( X, Y), );
CGEventPost(kCGHIDEventTap, mouse);
CFRelease(mouse);
CFRelease(source);