Dynamically Create AutoHotkey Hotkey to Function/Subroutine

后端 未结 3 1589
孤独总比滥情好
孤独总比滥情好 2021-02-04 17:28

The AutoHotkey command Hotkey allows for the creation of dynamic hotkeys at runtime, but its syntax and documentation seems to limit it to built-in or existing labe

3条回答
  •  逝去的感伤
    2021-02-04 18:07

    Is this what you are looking for?

    #Persistent
    #SingleInstance Force
    #installKeybdHook
    
    Hotkey, #z, MyLabel
    
    MyLabel:
        MsgBox,OK
    Return
    

提交回复
热议问题