Hallo zusammen. ich hab hier ein kleines aber sehr simples problem!
Beim drücken auf X der GUI soll eine MsgBox(4) erscheinen, die beim drücken auf "Ja" das gesammte script (also GUI+MsgBox) schließt und beim Drücken auf "Nein" nur die MsgBox schliesst.
Das Problem liegt darin, das er mit zb. Exit das script nicht beendet, wenn man auf den "Ja" button in der MsgBox(4) klickt... kp warum
Code:
GUICreate ("Programm", 600, 500)
GUISetState (@SW_Show)
AutoItSetOption ("GUICloseOnEsc", 0)
While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
MsgBox (4, "sicherheitsabfrage?", "frage")
EndSelect
Wend
$beenden = MsgBox (4, "sicherheitsabfrage?", "frage")
If $beenden = ;HIER IST MEIN PROBLEM
ElseIf $beenden = 7 Then
WinClose ("sicherheitsabfrage?", "frage")
Endif