Apple Events to Control Mouse Remotely
问题 I'm not even sure where to begin with this question... I want to be able to send mouse-click events to another machine, as if the user had clicked on that machine. I can do it on the same machine via: CGEventSourceRef source = CGEventSourceCreate(NULL); CGEventType eventType = kCGEventLeftMouseDragged; CGPoint mouseCursorPosition; mouseCursorPosition.x = point.x; mouseCursorPosition.y = point.y; CGMouseButton mouseButton = kCGMouseButtonLeft; CGEventRef mouseEvent = CGEventCreateMouseEvent (