Here is a proof of concept by adding the following to xutils.py
def mouse_b1_press(x, y): pyatspi.Registry.generateMouseEvent(x, y, pyatspi.MOUSE_BP1)
def mouse_abs(x,y) pyatspi.Registry.generateMouseEvent(x, y, pyatspi.MOUSE_ABS)
def mouse_rel(x,y) pyatspi.Registry.generateMouseEvent(x, y, pyatspi.MOUSE_REL)
def mouse_b1_release(x, y): pyatspi.Registry.generateMouseEvent(x, y, pyatspi.MOUSE_BR1)
Reference: http://developer.gnome.org/libatspi/stable/libatspi-atspi-registry.html#atspi-generate-mouse-event b1c - Left button click
b2c - Middle button click
b3c - Right button click
b1d - Left button double click
b2d - Middle button double click
b3d - Right button double click
abs - absolute motion
rel - relative motion
b1p - Button 1 press
b1r - Button 1 release
b3p - Button 3 press
b3r - Button 3 release
Here is a proof of concept by adding the following to xutils.py
def mouse_b1_press(x, y): Registry. generateMouseEv ent(x, y, pyatspi.MOUSE_BP1)
pyatspi.
def mouse_abs(x,y) Registry. generateMouseEv ent(x, y, pyatspi.MOUSE_ABS)
pyatspi.
def mouse_rel(x,y) Registry. generateMouseEv ent(x, y, pyatspi.MOUSE_REL)
pyatspi.
def mouse_b1_release(x, y): Registry. generateMouseEv ent(x, y, pyatspi.MOUSE_BR1)
pyatspi.
Reference: developer. gnome.org/ libatspi/ stable/ libatspi- atspi-registry. html#atspi- generate- mouse-event
http://
b1c - Left button click
b2c - Middle button click
b3c - Right button click
b1d - Left button double click
b2d - Middle button double click
b3d - Right button double click
abs - absolute motion
rel - relative motion
b1p - Button 1 press
b1r - Button 1 release
b3p - Button 3 press
b3r - Button 3 release