#InstallKeybdHook
SetHotkey("TestLabel")
return
SetHotkey(Label) {
;создаем ожидание ввода
Input, SingleKey, L1 V,
(
{LControl}{RControl}{LAlt}{RAlt}{LShift}{RShift}{LWin}{RWin}{AppsKey}
{F1}{F2}{F3}{F4}{F5}{F6}{F7}{F8}{F9}{F10}{F11}{F12}
{Left}{Right}{Up}{Down}{Home}{End}{PgUp}{PgDn}
{Del}{Ins}{BS}{Capslock}{Numlock}{PrintScreen}{Pause}
)
Sleep, 250
;msgbox % A_PriorKey
Hotkey, %A_PriorKey%, %Label%
}
TestLabel:
msgbox work!
return