Xpresser should support click and drag
Bug #1081817 reported by
Chris Gagnon
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Xpresser |
Fix Committed
|
Wishlist
|
Chris Gagnon |
Bug Description
Is there any way to emulate a click and drag scenario? Is that a future plan?
Ever since the Android SDK updated the only way to answer a phone call is with a click and drag on the screen, but not a regular button (as I was doing before with graphic scripting).
Is there a feature for this? Maybe customizing in the .ini file or something? click this and drag it "x" pixels to the right or left?
I didn't see anything specifically mentioned about click and drags, and
I didn't see a blueprint for anything like that, so I wasn't certain if it was do-able or not.
Just a thought.
Thanks!
Changed in xpresser: | |
importance: | Undecided → Wishlist |
assignee: | nobody → Chris Gagnon (chris.gagnon) |
status: | New → Triaged |
To post a comment you must log in.
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