Hallo,
so vielleicht:
Spoiler anzeigen
[autoit]
#include <Tabconstants.au3>
GUICreate("test", 100, 70)
$Button1 = GUICtrlCreateButton("test1", 10, 10, 80, 20, $TCS_FOCUSNEVER)
$Button2 = GUICtrlCreateButton("test2", 10, 40, 80, 20, $TCS_FOCUSNEVER)
GUISetState()
While True
$msg = GUIGetMsg()
If $msg = $Button1 Then MsgBox(0, "", "1")
If $msg = $Button2 Then MsgBox(0, "", "2")
WEnd
Edit: Manchmal gehts bei mir, manchmal nicht. Lol, scheint wohl random zu sein