Add a method to move the mouse in #26

fdv3 opened this Issue May 4, 2012 · 1 comment


None yet

2 participants


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)

Atomac team member

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