Sign in to follow this  
Followers 0
Kyme

GUICreate Close

2 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  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

When the words fail... music speaks

Share this post


Link to post
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
Sign in to follow this  
Followers 0