AutiHotKey Some key combinations are not intercepted (ex 3,4,5)

情到浓时终转凉″ 提交于 2020-01-01 18:53:48

问题


I want to remap the keyboard in the following mode:

2::ctrl
3::shift
4::alt
5::tab

My problem is that pressing at the same time 3,4,5 (equivalent to pressing alt shift tab) does not work. After investigating a little I have found that ahk can not catch some keys when being pressed together (2,3,e OR 3,4,5). Here is my code through which I have found out this

2::
    tooltip 2
    sleep 500
    tooltip
return
3::
    tooltip 3
    sleep 500
    tooltip
return
4::
    tooltip 4
    sleep 500
    tooltip
return
5::
    tooltip 5
    sleep 500
    tooltip
return
e::
    tooltip e
    sleep 500
    tooltip
return

Anyone knows of a workaround to catch multiple key presses (like 2,3,e OR 3,4,5) ?

Thanks !


回答1:


This is probably a limitation of your keyboard - some keyboards can't handle particular combinations of three keys, which is known as "key jamming." See the "Key jamming and ghosting" section in the Rollover (key) page on Wikipedia.



来源:https://stackoverflow.com/questions/46902579/autihotkey-some-key-combinations-are-not-intercepted-ex-3-4-5

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!