Autohotkey动态快捷键
; This GUI allows you to register primitive three-key combination hotkeys:
Gui Add, Text, xm, Prefix key:
Gui Add, Edit, yp x100 w100 vPrefix, Space
Gui Add, Text, xm, Suffix hotkey:
Gui Add, Edit, yp x100 w100 vSuffix, f & j
Gui Add, Button, Default, Register
Gui Show
return
ButtonRegister() {
global
Gui Submit, NoHide
local fn
fn := Func("HotkeyShouldFire").Bind(Prefix)
Hotkey If, % fn
Hotkey % Suffix, FireHotkey
}
HotkeyShouldFire(prefix, thisHotkey) {
return GetKeyState(prefix)
}
FireHotkey() {
MsgBox %A_ThisHotkey%
}
GuiClose:
GuiEscape:
ExitApp
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。


我还不能理解动态快捷键意思。