Local $aRet = DllCall('user32.dll', 'uint_ptr', 'LoadKeyboardLayoutW', 'wstr', '00000409', 'uint', '0x00000101'); переключаем раскладку
HotKeySet("b", "_beep1"); устанавливаем клавишу
HotKeySet("2", "_beep1"); устанавливаем клавишу
HotKeySet("{ESC}", "_exit"); устанавливаем клавишу
While 1
Sleep(1000)
WEnd
Func _beep1()
Beep(900, 500)
EndFunc
Func _exit()
Exit
EndFunc