我希望能够双击SHIFT键后跟一个字母来激活一个动作。谁能帮忙?能够双击SHIFT键会很好。双击SHIFT键后跟一个字母
就像?
< + < +或> +> +那么D 做某事 返回
~Shift Up::
If (A_ThisHotkey == A_PriorHotkey && A_TimeSincePriorHotkey < 500)
{
Double_SHIFT := true
Sleep, 2000
Double_SHIFT := false
}
return
; Press a key within two seconds after double tapping the Shift key, to activate an action:
#If (Double_SHIFT)
a:: MsgBox, This macro has not yet been enabled. Contact IT for suggestions.
b:: FormatTime, CurrentDateTime,,MM/dd/yy - hh:mmtt
SendInput %CurrentDateTime%
c:: MsgBox, This macro has not yet been enabled. Contact IT for suggestions.
return
要使用热键执行多个命令,请将**第一行放在热键**定义下,并使最后一行成为**返回**。请参阅[简介和简单示例](https://www.autohotkey.com/docs/Hotkeys.htm#Intro)和[为什么我的脚本中的某些行不会执行?](https://autohotkey.com/docs/ FAQ.htm#自动执行)。 – user3419297