将几个热键组合成热字串

Combine several hotkeys into hotstring

我知道热字串:

; If I press `d` key three times, there should be inserted current date and time

:*:ddd::
FormatTime, CurrentDateTime,, dd.MM.yyyy HH:mm
SendInput, %CurrentDateTime%
return

我想要的是为热键复制它,即将几个热键组合成热字串。

这是简单的热键:

+Home::
SendInput, Foo
return

这就是我要实现的目标:

; Press `Shift-Home` twice to send `Bar`

:*:+Home+Home::
SendInput, Bar
return

SetTimer-Example #3 或者使用这个:

+Home::
count++    ; for each press, increment a counter
If (count=1)
    SetTimer send_text, -500
return

send_text:
KeyWait, Shift, L
If (count=1)
    SendInput, one
If (count=2)
    SendInput, two
If (count=3)
    SendInput, three
; ...
count:=0      ; reset counter
return