I need to set the position of the mouse on the screen. In some other similar question, it was suggested to use CGDisplayMoveCursorToPoint(CGDirectDisplayID display, CG
CGDisplayMoveCursorToPoint(CGDirectDisplayID display, CG
The real answer to this question is:
CGMainDisplayID()
https://developer.apple.com/library/mac/documentation/GraphicsImaging/Reference/Quartz_Services_Ref/index.html#//apple_ref/c/func/CGMainDisplayID
CGDisplayMoveCursorToPoint(CGMainDisplayID(), point);