Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Add a method to move the mouse in AXClasses.py #26

Open
fdv3 opened this Issue · 1 comment

2 participants

fdv3 Andrew Wu
fdv3

Just like:

def mouseMove(self, x, y):
coord = Quartz.CGPointMake(x, y)
mouseMove = Quartz.CGEventCreateMouseEvent(None, Quartz.kCGEventMouseMoved, coord, Quartz.kCGMouseButtonLeft)
Quartz.CGEventPost(Quartz.kCGHIDEventTap, mouseMove)

Andrew Wu
Owner

Thank you for the quick write-up - would you mind also adding a bit of error-handling (e.g. if the EvenPost fails what would happen?)?

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.