PDA

View Full Version : Move and click the mouse




pokeman7452
Sep 28, 2007, 10:14 AM
Is there any way to move and click the mouse using code? Preferably Python?



kainjow
Oct 4, 2007, 07:50 PM
The CoreGraphics function CGDisplayMoveCursorToPoint will do it. I'm sure you can write a Python wrapper (http://csl.sublevel3.org/C-functions-from-Python-Mac-OS-X.pdf) around that somehow.

pokeman7452
Oct 5, 2007, 04:23 PM
and click?