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

Open
fdv3 opened this Issue May 4, 2012 · 1 comment

Projects

None yet

2 participants

@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)

@pekkle01
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