phil294 / AHK_X11

AutoHotkey for Linux (X11-based systems)
GNU General Public License v2.0
833 stars 16 forks source link

MouseClick, left/right/middle not working #81

Open kadiryilmaz46 opened 5 months ago

kadiryilmaz46 commented 5 months ago

MouseClick, left/right/center is not working, I tested it but the click is invalid, here is the code I wrote LButton::MouseClick, left but it didn't work

I request it to be corrected

phil294 commented 5 months ago

What would you expect the code to do? You're mapping left click to left click, so I can't see what should happen here.

If you meant to map L to R, then this doesn't work due to a limitation with X11 unfortunately, see the Readme: https://github.com/phil294/AHK_X11?tab=readme-ov-file#remapping-mouse

kadiryilmaz46 commented 5 months ago

The documents don't say so, but

https://phil294.github.io/AHK_X11/#MouseClick.htm

; Example #1:

Send, {Control down}
MouseClick, left, 55, 233
Send, {Control up}

; Example #2:

Send, {Shift down}
MouseClick, left, 55, 233
Send, {Shift up}
phil294 commented 5 months ago

So you mean LButton should result in Ctrl+LButton? I think this isn't possible right now and probably will continue not to because of a limitation of X11, if I understood this right