Open tstack77 opened 7 years ago
Is this a known issue or is there a different method to use mouse-click? I'd really like to get this working if possible.
Thanks
I think this may be a bug but am not sure. I may not have time to investigate for a while :/
On Wed, Apr 5, 2017 at 2:03 PM Stack notifications@github.com wrote:
Is this a known issue or is there a different method to use mouse-click? I'd really like to get this working if possible.
Thanks
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jordansissel/xdotool/issues/163#issuecomment-291996018, or mute the thread https://github.com/notifications/unsubscribe-auth/AAIC6nW_U5SYmvAf9z_FzMzh_mwz4gKZks5rtAGHgaJpZM4MIAUv .
From what I remember trying to use the X11 APIs to capture mouse clicks, it doesn't work very well. There maybe some hacks we have to do to make it work .
On Wed, Apr 5, 2017 at 2:36 PM Jordan Sissel notifications@github.com wrote:
I think this may be a bug but am not sure. I may not have time to investigate for a while :/
On Wed, Apr 5, 2017 at 2:03 PM Stack notifications@github.com wrote:
Is this a known issue or is there a different method to use mouse-click? I'd really like to get this working if possible.
Thanks
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub < https://github.com/jordansissel/xdotool/issues/163#issuecomment-291996018 , or mute the thread < https://github.com/notifications/unsubscribe-auth/AAIC6nW_U5SYmvAf9z_FzMzh_mwz4gKZks5rtAGHgaJpZM4MIAUv
.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jordansissel/xdotool/issues/163#issuecomment-292004651, or mute the thread https://github.com/notifications/unsubscribe-auth/AAIC6oM6FJ9b7q7cxNUKn_0iwUNeZvtGks5rtAlXgaJpZM4MIAUv .
Just curious if this was ever worked on or fixed because I'm having a similar problem with mouse-click and behave
Not work on Fedora 30 / Centos7 / Both VM and bare machine. This is real bug
xdotool version 3.20170221.1
I'm trying to detect a mouse-click in a certain window then run a script.
When running either mouse-enter/leave the script does work
xdotool search --name "XYZ" behave %@ mouse-enter exec 'myscript'
But mouse-click doesn't
xdotool search --name "XYZ" behave %@ mouse-click exec 'myscript'
Issue is the same in v3.20160805.1
You did this work in another way? like you I just want to exec something when mouse click. I try i3 feature to do this but not work too.
I'm experiencing the exact same issue in Ubuntu 20.04 xdotool version 3.20160805.1
I am hit by the same issue on gentoo running fvwm.
The following doesn't work at all, I just get no output whatever I try with the mouse:
xdotool getactivewindow behave %@ mouse-click getmouselocation --shell
With the following:
xdotool getactivewindow behave %@ mouse-enter getmouselocation --shell
I get no output when I leave the active window and make another window to be active, and output when entreering back the first active window (focus follow mouse), which is exepected. But, each time I click into that active window, I get: an output like:
X=571
Y=332
SCREEN=0
WINDOW=12591494
which is not expected.
My conclusion is than mouse-click do nothing, and than mouse-enter behave like mouse-click and mouse-enter.
Using Raspbian GNU/Linux 10 (buster) on Raspberry Pi 4.
xdotool getactivewindowid
xdotool behave <window_id> mouse-click getmouselocation
Output: No output
This does not return anything on mouse click on the respective window
xdotool getactivewindowid
xdotool behave <window_id> mouse-enter getmouselocation
Output: x:1178 y:656 screen:0 window:16788867
But this is giving me the mouse location when mouse enters the window perimeter.
Unfortunately, I have exactly the same problem like all the above folks.
xdotool version 3.20170221.1
I'm trying to detect a mouse-click in a certain window then run a script.
When running either mouse-enter/leave the script does work
xdotool search --name "XYZ" behave %@ mouse-enter exec 'myscript'
But mouse-click doesn't
xdotool search --name "XYZ" behave %@ mouse-click exec 'myscript'
Issue is the same in v3.20160805.1