> On Jun 11, 2015, at 7:16 PM, [email protected] wrote: > > + > + @classmethod > + def moveCursor(cls, x, y): > + moveEvent = CGEventCreateMouseEvent(None, kCGEventMouseMoved, (x, > y), kCGMouseButtonLeft) > + CGEventPost(kCGHIDEventTap, moveEvent)
We shouldn't move the cursor to 0,0. Some people have actions when the mouse hits that corner. The PLT uses 10,0 so its just slightly offset As a side note, you can use CGWarpMouseCursorPosition to avoid creating a mouse event when you move the mouse. — Stephanie > + > + @classmethod > + def screenSize(cls): > + return NSScreen.mainScreen().frame().size
_______________________________________________ webkit-changes mailing list [email protected] https://lists.webkit.org/mailman/listinfo/webkit-changes
