Also hallo erst mal ich bin neu hier...
ich habe eine Frage und zwar ich habe ein au3 skript mit 2 Formen drin
Spoiler anzeigen
#include
#include
#include
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 226, 92, 192, 124)
$Button1 = GUICtrlCreateButton("öffne Form2", 0, 8, 225, 81, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
#include
#include
#include
#Region ### START Koda GUI section ### Form=
$Form2 = GUICreate("Form2", 223, 74, 193, 129)
$Button1 = GUICtrlCreateButton("schliesse Form2", 0, 8, 217, 65, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
GUIDelete ()
EndSwitch
WEnd
EndSwitch
WEnd
wenn ich jetzt auf "öffne Form2" klicke öffnet sich form2 (ist ja logisch...)
wenn ich auf schließe Form2 gehe in der neu geöffneten gui geht die Form durchen Befehl
guidelete ()
natürlich zu....
Meine Frage:
Wenn ich jetzt wieder auf "öffne Form2" drücke passiert nix mehr....
wie bekomme ich das hin, dass die Form sich dann erneut öffnet???
Danke im Vorraus für Antworten
EDIT: sry code war erst falsch