So z.B.:
Spoiler anzeigen
[autoit]
#include <GUIConstants.au3>
[/autoit] [autoit][/autoit] [autoit]Opt("GUIOnEventMode", 1)
[/autoit] [autoit][/autoit] [autoit]$hWnd_1 = GUICreate("Test 1", 200, 100, 50, 50)
$cButton_1 = GUICtrlCreateButton("Button 1", 5, 5, 190, 90)
GUISetState()
$hWnd_2 = GUICreate("Test 2", 200, 100, 350, 50)
$cButton_2 = GUICtrlCreateButton("Button 2", 5, 5, 190, 90)
GUISetState()
GUISetOnEvent($GUI_EVENT_CLOSE, "_Exit")
[/autoit] [autoit][/autoit] [autoit]GUICtrlSetOnEvent($cButton_1, "_Button1")
GUICtrlSetOnEvent($cButton_2, "_Button2")
While Sleep(1000)
WEnd
Func _Exit()
Exit
EndFunc
Func _Button1()
MsgBox(64, "GUI 1", "Button 1")
EndFunc
Func _Button2()
MsgBox(64, "GUI 2", "Button 2")
EndFunc