Xpresser should support click and drag

Bug #1081817 reported by Chris Gagnon
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Committed
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.

Changed in xpresser:
importance: Undecided → Wishlist
assignee: nobody → Chris Gagnon (chris.gagnon)
status: New → Triaged
Revision history for this message
Chris Gagnon (chris.gagnon) wrote :

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)

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

Revision history for this message
Chris Gagnon (chris.gagnon) wrote :
Changed in xpresser:
status: Triaged → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.