Ich bins mal wieder^^, hoffe nerve nicht zu sehr^^, aber ihr seit immernoch die beste hilfe.
Also möchte das sich nur die erste GUI öffnet und mit klick auf $Start sich die GUI schließt und sich die 2. GUI öffnet. Hab schon etliche seiten durchgeforstet, hab zwar auch viel bsp. gefunden, nur konnte es net auf mein script umsetzen, bekomme immer ein fehler mit der declaration von $Fenster.
So na da bin ich mal gespannt, wie man das richtig einbaut, danke schonmal im vorraus
Mfg
Also möchte das sich nur die erste GUI öffnet und mit klick auf $Start sich die GUI schließt und sich die 2. GUI öffnet. Hab schon etliche seiten durchgeforstet, hab zwar auch viel bsp. gefunden, nur konnte es net auf mein script umsetzen, bekomme immer ein fehler mit der declaration von $Fenster.
PHP Code:
#include <ButtonConstants.au3>
#include <ComboConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=c:\users\tobi112\desktop\settings.kxf
Global $Settings = GUICreate("Einstellungen", 427, 572, 383, 150)
GUISetBkColor(0xA6CAF0)
Global $Start = GUICtrlCreateButton("Start", 160, 520, 97, 41, $WS_GROUP)
GUICtrlSetFont(-1, 18, 400, 0, "MS Sans Serif")
Global $ud_1 = GUICtrlCreateLabel("Erstelle deine eigene Airline", 80, 8, 270, 28)
GUICtrlSetFont(-1, 15, 800, 4, "MS Sans Serif")
GUICtrlSetColor(-1, 0x0000FF)
Global $ud_2 = GUICtrlCreateLabel("Wähle deinen Heimatflughafen:", 0, 64, 190, 20)
GUICtrlSetFont(-1, 10, 400, 4, "MS Sans Serif")
GUICtrlSetColor(-1, 0x0000FF)
Global $ud_3 = GUICtrlCreateLabel("Besitzer der Airline:", 72, 120, 118, 20)
GUICtrlSetFont(-1, 10, 400, 4, "MS Sans Serif")
GUICtrlSetColor(-1, 0x0000FF)
Global $ud_4 = GUICtrlCreateLabel("Budget:", 136, 176, 50, 20)
GUICtrlSetFont(-1, 10, 400, 4, "MS Sans Serif")
GUICtrlSetColor(-1, 0x0000FF)
Global $ud_5 = GUICtrlCreateLabel("Name der Airline:", 80, 232, 107, 20)
GUICtrlSetFont(-1, 10, 400, 4, "MS Sans Serif")
GUICtrlSetColor(-1, 0x0000FF)
Global $ud_6 = GUICtrlCreateLabel("Art der Airline:", 104, 288, 86, 20)
GUICtrlSetFont(-1, 10, 400, 4, "MS Sans Serif")
GUICtrlSetColor(-1, 0x0000FF)
Global $ip_airport = GUICtrlCreateInput("", 208, 64, 161, 24, BitOR($ES_CENTER,$ES_AUTOHSCROLL,$WS_BORDER,$WS_CLIPSIBLINGS), 0)
GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0x0000FF)
GUICtrlSetBkColor(-1, 0xE3E3E3)
Global $ip_besitzer = GUICtrlCreateInput("", 208, 119, 161, 24, BitOR($ES_CENTER,$ES_AUTOHSCROLL,$WS_BORDER,$WS_CLIPSIBLINGS), 0)
GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0x0000FF)
GUICtrlSetBkColor(-1, 0xE3E3E3)
Global $ip_name = GUICtrlCreateInput("", 208, 234, 161, 24, BitOR($ES_CENTER,$ES_AUTOHSCROLL,$WS_BORDER,$WS_CLIPSIBLINGS), 0)
GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0x0000FF)
GUICtrlSetBkColor(-1, 0xE3E3E3)
Global $cb_Budget = GUICtrlCreateCombo("", 208, 176, 161, 25, BitOR($CBS_DROPDOWNLIST,$CBS_AUTOHSCROLL,$CBS_OEMCONVERT,$WS_BORDER,$WS_CLIPSIBLINGS))
GUICtrlSetData(-1, "100000000|250000000|500000000")
GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0x0000FF)
Global $cb_art = GUICtrlCreateCombo("", 208, 288, 161, 25, BitOR($CBS_DROPDOWNLIST,$CBS_AUTOHSCROLL))
GUICtrlSetData(-1, "Cargo|Personen")
GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0x0000FF)
Global $ud_7 = GUICtrlCreateLabel("Oder du hast schon eine Airline", 64, 416, 301, 28)
GUICtrlSetFont(-1, 15, 800, 4, "MS Sans Serif")
GUICtrlSetColor(-1, 0x0000FF)
Global $ud_8 = GUICtrlCreateLabel("Dann Klicke auf Start ohne die Felder auszufüllen", 8, 456, 292, 20)
GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0x0000FF)
Global $ud_9 = GUICtrlCreateLabel("und gehe auf Datei --->Öffnen", 8, 480, 176, 20)
GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0x0000FF)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Case $Start
GUISetState(@SW_HIDE, $Settings)
GUISetState(@SW_SHOW, $Fenster)
EndSwitch
Wend
Global $Fenster = GUICreate("Airlinemanager ", 901, 675, 0, 0)
Global $MenuItem1 = GUICtrlCreateMenu("&Datei")
Global $MenuItem4 = GUICtrlCreateMenuItem("Öffnen", $MenuItem1)
Global $MenuItem3 = GUICtrlCreateMenuItem("Speichern unter....", $MenuItem1)
Global $MenuItem2 = GUICtrlCreateMenuItem("Exit", $MenuItem1)
Global $MenuItem5 = GUICtrlCreateMenu("&Credits")
Mfg