我希望以LWin开头的任何可能的键序列都可以执行特定任务,例如:
LWin & a::
;Execute the task
或:
LWin & b::
;Execute the task
依此类推...
对于所有的键盘键,当然不可能写出来,所以我想到了这样的东西:
LWin & *:: ; * = KEY
KEY = %A_ThisHotkey% ; KEY is now = LWin & a (for example)
KEY := RegExReplace(Clipboard,"i)^lwIN & ") ; KEY is now = a
; The task that needs to be executed:
Send {LWin UP}
Send {%KEY% DOWN}
KeyWait %KEY%
Send {%KEY% up}
return
但是问题是,通配符不能那样使用。如何做到这一点?
答案 0 :(得分:2)
z