<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jun 11, 2015, at 7:16 PM, <a href="mailto:commit-queue@webkit.org" class="">commit-queue@webkit.org</a> wrote:</div><br class="Apple-interchange-newline"><div class=""><span style="font-family: monospace; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14.399999618530273px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: pre; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(221, 255, 221); float: none; display: inline !important;" class="">+
+    @classmethod
+    def moveCursor(cls, x, y):
+        moveEvent = CGEventCreateMouseEvent(None, kCGEventMouseMoved, (x, y), kCGMouseButtonLeft)
+        CGEventPost(kCGHIDEventTap, moveEvent)
</span></div></blockquote><div><br class=""></div><div>We shouldn't move the cursor to 0,0. &nbsp;Some people have actions when the mouse hits that corner. &nbsp;The PLT uses 10,0 so its just slightly offset</div><div><br class=""></div><div>&nbsp;As a side note, &nbsp;you can use&nbsp;CGWarpMouseCursorPosition to avoid creating a mouse event when you move the mouse.</div><div><br class=""></div><div>— Stephanie</div><div class=""><br class=""></div><div><br class=""></div><blockquote type="cite" class=""><div class=""><span style="font-family: monospace; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14.399999618530273px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: pre; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(221, 255, 221); float: none; display: inline !important;" class="">+
+    @classmethod
+    def screenSize(cls):
+        return NSScreen.mainScreen().frame().size</span></div></blockquote></div><br class=""></body></html>