Can't get any mousemove events to work

453 views
Skip to first unread message

white...@gmail.com

unread,
May 3, 2013, 6:01:47 PM5/3/13
to xdotoo...@googlegroups.com
I am running a Xvfb  on display :15 with version 3.20130503.1 of xdotool. I'm trying to run the following command and it fails.
 
DISPLAY=:13 xdotool search -pid 28666 --onlyvisible  xul windowmove --sync 0 0  mousemove --sync 230 65 click  1
 
I have determined that the search, windowmove, and click all work correctly but the mousemove does not work.  In addition, mousemove_relative seems to fail also.
 
I must be doing something fundamentally wrong but I don't know what it is.

lam...@gmail.com

unread,
May 16, 2013, 8:47:14 AM5/16/13
to xdotoo...@googlegroups.com, white...@gmail.com
If you are using xdotool from an exterm try tu run it with this parameter:
xterm -xrm 'xterm*allowSendEvents: True'

If it solve your problem add:   xterm*allowSendEvents: True
to your /etc/X11/Xresources/x11-common

If it dont help try xdotool with windowfocus or window command.

If the above methods fails try:
wmctrl -l
xdotool windowfocus <number from wmctrl>
xdotool <command>

Jordan Sissel

unread,
May 16, 2013, 11:27:03 AM5/16/13
to whit...@gmail.com, xdotool-users
I believe the problem is the way xdotool makes assumptions about your intent.

Because you did a search, any commands run after that search will know about the search results. So the mousemove is sending the mousemove command directly to the window - is that what you intended? Instead you can specify 'mousemove --window 0 --sync 230 65 click --window 0 1'  and it'll explicitly send the mouse move and click actions as simulated mouse movements instead of signals directly to a window.

Did I explain this well enough? Sorry if it's confusing :)

-Jordan

--
You received this message because you are subscribed to the Google Groups "xdotool-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xdotool-user...@googlegroups.com.
To post to this group, send email to xdotoo...@googlegroups.com.
Visit this group at http://groups.google.com/group/xdotool-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages