Kyme Posted June 30, 2008 Share Posted June 30, 2008 if i have some like this #include <GUIConstants.au3> $Log = GUICreate("Login", 350, 250) $ok = GUICtrlCreateButton("OK", 80, 210, 75, 25) GUISetState(@SW_SHOW) while 1 Switch GUIGetMsg() Case $ok Func Devildetect() Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Func Devildetect() $Menu1 = GUICreate("Disconnect Detector", 355, 250) GUISetState(@SW_SHOW) while 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd EndFunc how i can close the $Log when $ok it's pressed... whitout GUISetState(@SW_HIDE, $Log) i have too damn long script and i use some #include <inet.au3> in gui form function... the problem it's the script work hard...and i think i solve the problem if i close the others gui^^ wait advice...tnx Link to comment Share on other sites More sharing options...
Andreik Posted June 30, 2008 Share Posted June 30, 2008 (edited) if i have some like this #include <GUIConstants.au3> $Log = GUICreate("Login", 350, 250) $ok = GUICtrlCreateButton("OK", 80, 210, 75, 25) GUISetState(@SW_SHOW) while 1 Switch GUIGetMsg() Case $ok Func Devildetect() Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Func Devildetect() $Menu1 = GUICreate("Disconnect Detector", 355, 250) GUISetState(@SW_SHOW) while 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd EndFunc how i can close the $Log when $ok it's pressed... whitout GUISetState(@SW_HIDE, $Log) i have too damn long script and i use some #include <inet.au3> in gui form function... the problem it's the script work hard...and i think i solve the problem if i close the others gui^^ wait advice...tnx Look in help file GuiDelete(). Edited June 30, 2008 by Andreik When the words fail... music speaks. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now