AHK_X11 icon indicating copy to clipboard operation
AHK_X11 copied to clipboard

MouseClick, left/right/middle not working

Open kadiryilmaz46 opened this issue 1 year ago • 3 comments

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

kadiryilmaz46 avatar Jun 02 '24 10:06 kadiryilmaz46

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

phil294 avatar Jun 02 '24 20:06 phil294

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}

kadiryilmaz46 avatar Jun 03 '24 08:06 kadiryilmaz46

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

phil294 avatar Jun 11 '24 16:06 phil294