Jump to content

GUICreate Close


Recommended Posts

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

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 by Andreik

When the words fail... music speaks.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...