Ich habe volgendes vor will aber net klappen
Ich habe eine gui auf der gibt es einen button der eine neue gui aufmacht dann will ich auf dieser neun gui ein paar buttons aber wenn ich dann drauf drücke passiert nichts ka warum
achja und auf der zweiten gui einen button der nur gui 2 schliest
bekomm es aber einfach net hin
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("The Game", 633, 454, 193, 115)
GUISetBkColor(0x0000FF)
$Start = GUICtrlCreateButton("Start", 192, 280, 217, 97, 0)
GUICtrlSetFont(-1, 25, 400, 0, "MS Sans Serif")
$Pic1 = GUICtrlCreatePic("bsp1.jpg", 64, 40, 100, 100, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
$Pic2 = GUICtrlCreatePic("bsp2.jpg", 256, 40, 100, 100, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
$Pic3 = GUICtrlCreatePic("bsp3.jpg", 456, 40, 100, 100, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
$Form2 = GUICreate("The Game", 633, 454, 193, 115)
GUISetBkColor(0x0000FF)
GUICtrlSetFont(-1, 25, 400, 0, "")
$1 = GUICtrlCreateButton("bsp", 232, 120, 153, 41, 0)
$Label = GUICtrlCreateLabel("Game", 168, 24, 286, 41)
GUICtrlSetFont(-1, 25, 400, 0, "MS Sans Serif")
$2 = GUICtrlCreateButton("bsp", 232, 176, 153, 41)
$3 = GUICtrlCreateButton("bsp", 232, 232, 153, 41)
$Back = GUICtrlCreateButton("Zurück", 470, 400, 153, 41)
GUISetState(@SW_SHOW, $Form1)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $Form1
Switch $msg[0]
Case $GUI_EVENT_CLOSE
ExitLoop
Case $Start
GUISetState(@SW_HIDE, $Form1)
GUISetState(@SW_SHOW, $Form2)
EndSwitch
Case $Form2
Switch $msg[0]
Case $GUI_EVENT_CLOSE
GUISetState(@SW_SHOW, $Form1)
GUISetState(@SW_HIDE, $Form2)
;Case $Back
; MsgBox(0, '', 'Button 2 geklickt')
EndSwitch
EndSwitch
WEnd
GUIDelete($Form1)
GUIDelete($Form2)
stimmt das so oder was ist falsch
danke schonmal jetzt