Hey, i just started autoit like 2 weeks ago and i have begun making my first big project.
The problem is, my project uses gui's and if i press a button on one of my guis it has another form come up like this.
Case $Button1
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Example", 623, 442, 186, 131)
$Label1 = GUICtrlCreateLabel("Example", 224, 192, 127, 41)
GUICtrlSetFont(-1, 24, 400, 0, "MS Sans Serif")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
As you can see that gui comes up after i press $Button1 but if i close the previous gui than this one closes aswell.
I don't really get why its doing this, any advice