Hallo zusammen
könnt ihr mir bitte sagen, warum das Programm beim Klick auf meinen
Schließen-Button (cmdClose) nicht geschlossen wird ?
Hier ein Ausschnitt aus meinem Programm:
[autoit]
GUICtrlSetOnEvent($cmdClose, "GUIClose")
GUICtrlSetOnEvent($cmdMinimize,"GUIMainMinimize")
GUICtrlSetOnEvent($cmdStart, "AIStart")
While 1
sleep(100)
WEnd
Func AIStart()
While 1
m_Global()
sleep(1000)
WEnd
EndFunc
Func GUIClose()
$var = MsgBox(4,"Really Close???","Are you sure you want to close AIS??")
if $var = 6 then
GUIDelete($ParentGUI)
GUIDelete($ChildGUI)
exit
endif
EndFunc
Vielen Dank im Voraus !
€dit: Als ich früher meine AIStart Funktion nicht hatte bzw. dort keine while 1 war, funktionierte es