具体来说,我想按住control键,然后按m键,松开m但保持按住control键,然后再次按m,这将触发该功能。更一般地说,我想知道告诉 autohotkey 多次读取同一键的语法
我怎么做?
我可以像这样用一个 m 做到这一点
^m::
Send, The text i want to send
Return
到目前为止我已经尝试过
^m m::
Send, The text i want to send
Return
^m&m::
Send, The text i want to send
Return
^mm::
Send, The text i want to send
Return
全部都是违法的
那这个呢:
; Depending on how many times a key combination was pressed,
; execute different commands:
^m::
ctrl_m_count++ ; start counter
SetTimer ctrl_m_action, -50
return
ctrl_m_action:
KeyWait, Ctrl
If (ctrl_m_count = 1)
MsgBox, ctrl_m_action 1
If (ctrl_m_count = 2)
MsgBox, ctrl_m_action 2
; ...
ctrl_m_count := 0 ; reset counter
return
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)