X/Linux mouse_event (like in win32api)

Atila Olah jolafix at gmail.com
Thu Nov 29 04:59:20 EST 2007


Hello everyone.
I would like to be able to emit a mouse click on my xgl/compiz
desktop, like I used to do in Windows:

win32api.mouse_event(win32con.MOUSEEVENTF_LEFTDOWN, x, y, 0)
win32api.mouse_event(win32con.MOUSEEVENTF_LEFTUP, x, y, 0)

I installed Python and pywin32 in wine and they both work, but I
cannot extend the mouse emulation to my X desktop.
Is there a way to interact directly with the X server (or with the
kernel?) to simulate a click? And if it can't be done in Python, where
should I go?

Thank you in advance for your replies.



More information about the Python-list mailing list