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
Hotkey
Is this what you are looking for?
#Persistent #SingleInstance Force #installKeybdHook Hotkey, #z, MyLabel MyLabel: MsgBox,OK Return