khang0001 0 Posted February 23, 2011 #include <GUIConstantsEx.au3> Opt("GUIOnEventMode", 1) ; Change to OnEvent mode $mainwindow = GUICreate("Hello World", 200, 100) GUISetOnEvent($GUI_EVENT_CLOSE, "CLOSEClicked") GUICtrlCreateLabel("Hello world! How are you?", 30, 10) $okbutton = GUICtrlCreateButton("OK", 70, 50, 60) GUICtrlSetOnEvent($okbutton, "OKButton") GUISetOnEvent($GUI_EVENT_CLOSE, "CLOSEClicked") GUISwitch($mainwindow) GUISetState(@SW_SHOW) While 1 Sleep(1000) WEnd Func OKButton() GUICreate("next", 500,500,500,500) GUISetState() EndFunc Func CLOSEClicked() If @GUI_WINHANDLE = $mainwindow Then Exit EndIf EndFunc when I click the button OK. It make 1 GUI next. I click 10 times in button Ok. it make 10 Gui next. how can I click 10 times in button OK. and it make 1 GUI next. and how can i close the GUI next independence with GUI hello world. please help meeeeee Share this post Link to post Share on other sites
JoHanatCent 13 Posted February 23, 2011 when I click the button OK. It make 1 GUI next. I click 10 times in button Ok. it make 10 Gui next. how can I click 10 times in button OK. and it make 1 GUI next. and how can i close the GUI next independence with GUI hello world. please help meeeeeeDid you make time to go through this first?Multi Gui Share this post Link to post Share on other sites