hallo ich habe ein problem unzwarich habe 2 guis, eine pw abfrage und wenn die richtig ist sollsich gui 1 schließen und 2 2 öffnen
C
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 207, 130, 193, 125)
$Input1 = GUICtrlCreateInput("", 40, 40, 121, 21)
$Button1 = GUICtrlCreateButton("Button1", 49, 64, 103, 49, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
If GUICtrlRead($Input1) = "pw" Then
MsgBox(64, "Richtig", "Dein pw ist korrekt !")
$Form1 = GUICreate("Form1", 633, 447, 193, 125)
$Button1 = GUICtrlCreateButton("Button1", 136, 56, 377, 345, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
EndIf
EndSwitch
WEnd
Alles anzeigen
aber bei mir sind 2 guis offen
mfg