Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MouseClick, left/right/middle not working #81

Open
kadiryilmaz46 opened this issue Jun 2, 2024 · 3 comments
Open

MouseClick, left/right/middle not working #81

kadiryilmaz46 opened this issue Jun 2, 2024 · 3 comments

Comments

@kadiryilmaz46
Copy link

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
Copy link
Owner

phil294 commented Jun 2, 2024

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
Copy link
Author

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
Copy link
Owner

phil294 commented Jun 11, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants