admin管理员组文章数量:1318335
A mouse button may be remapped to the Ctrl button by RButton::Ctrl
. However the same code does not work for XButton1 or XButton2 as XButton1::Ctrl
. How do I make XButton1 work as Ctrl?
When I click the XButton on the mouse, Key History shows that LControl was pressed and released consecutively. Other letter-keys I pressed while XButton1 was pressed show up being pressed before the press/release of the XButton/Ctrl hotkey.
A mouse button may be remapped to the Ctrl button by RButton::Ctrl
. However the same code does not work for XButton1 or XButton2 as XButton1::Ctrl
. How do I make XButton1 work as Ctrl?
When I click the XButton on the mouse, Key History shows that LControl was pressed and released consecutively. Other letter-keys I pressed while XButton1 was pressed show up being pressed before the press/release of the XButton/Ctrl hotkey.
Share Improve this question edited Feb 13 at 0:31 user4157124 3,00214 gold badges31 silver badges46 bronze badges asked Jan 21 at 22:45 ArturArtur 1,18311 silver badges17 bronze badges 3- Similar question asked here, but answer didn't work: stackoverflow/questions/50360302/… – Artur Commented Jan 21 at 22:46
- 1 Try adding #InstallMouseHook. For v2: InstallMouseHook. – Relax Commented Jan 21 at 23:11
- Good idea, but doesn't fix it. Ctrl does work with MButton however – Artur Commented Jan 23 at 3:25
1 Answer
Reset to default 0Turns out AutoHotKey is innocent, the culprit was the mouse I was using (Logitech M650)
It appears to send the XButton1 up/down command at once on release.
Switching to a different mouse fixed the issue and AHK works as expected.
本文标签: autohotkeyMapping Ctrl to mouse XButton1Stack Overflow
版权声明:本文标题:autohotkey - Mapping Ctrl to mouse XButton1 - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742041764a2417579.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论