autohotkey - 更多字符作为单个热键

autohotkey - More chars as a single hotkey

有什么方法可以将一系列字符映射到触发事件吗?

我想记住 1 个特殊热键 (e.g. Control-k) 在它后面加上另一个字母,我可以触发不同的事件: 前

^km  --> do something 
^kp  --> do something else
^kc  --> do something else
...
; The #If-directive creates context-sensitive hotkeys and hotstrings.
; #If is positional: it affects all hotkeys and hotstrings physically beneath it in the script.

#If GetKeyState("Ctrl")

    ; ^ka
    k & a:: MsgBox, Ctrl_k_a

    ; ^kb
    k & b:: MsgBox, Ctrl_k_b

#If   ; turn off context sensitivity

https://autohotkey.com/docs/commands/_If.htm