Mac系统下控制鼠标移动

 CGEventSourceRef source = CGEventSourceCreate(kCGEventSourceStateCombinedSessionState);
CGEventRef mouse = CGEventCreateMouseEvent (NULL, kCGEventMouseMoved, CGPointMake( X, Y), );
CGEventPost(kCGHIDEventTap, mouse);
CFRelease(mouse);
CFRelease(source);
 
上一篇:JS继承方式详解


下一篇:将Ubuntu主文件夹里的中文文件夹名称改成英文