[autoit]
#include <GUIConstants.au3>
[/autoit][autoit][/autoit][autoit]Global $h_gui = GUICreate("HotKey Test")
HotKeySet("^a", "Test")
GUISetState()
While 1
If GUIGetMsg() = $GUI_EVENT_CLOSE Then ExitLoop
WEnd
Func Test()
If WinGetHandle("") = $h_gui Then MsgBox (0, 'Test', 'Eine Testausgabe!')
EndFunc