Jump to content

Recommended Posts

Posted

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

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

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
×
×
  • Create New...