Skip to content
pepijndevos edited this page Sep 13, 2010 · 2 revisions

This works quite reliable, but you need to bundle xtest, which is found at pypi
The code is very straightforward:

Import the thing:

from xtest import XTest

This should need no explanation…

X = XTest()
X.fakeMotionEvent(x, y)
X.fakeButtonEvent(button, True)
X.fakeButtonEvent(button, False)
Clone this wiki locally