HotKeySet('a', 'Test')
ConsoleWrite(IsHotkeyRegistered(0x41) & @CRLF) ; vKey for letter A
ConsoleWrite(IsHotkeyRegistered(0x42) & @CRLF) ; vKey for letter B
Func IsHotkeyRegistered($vkCode)
Local $aCall = DllCall('user32.dll', 'bool', 'RegisterHotKey', 'hwnd', Null, 'int', 1, 'uint', 0x4000, 'uint', $vkCode)
If $aCall[0] = 0 Then
Return True
Else
DllCall('user32.dll', 'bool', 'UnregisterHotKey', 'hwnd', Null, 'int', 1)
Return False
EndIf
EndFunc
Func Test()
ConsoleWrite('Yayyy!' & @CRLF)
EndFunc