Sign in to follow this  
Followers 0
bnpit

Hide the GUI

6 posts in this topic

I have a gui with checkboxes and a submit button. Once the person hits the submit button I want the GUI interface to go away instead of waiting for the script to finish and exit before it goes away. I've tried searching for a command that can do this but haven't had any luck. I did a seach via the forums and haven't had any luck either. Is there a command or small script I can insert to hide (not minimize) the GUI?

I have a loop running to check for a button input for either select all, clear all, or update. Once the user hits update (button 3) I want the user to no longer see the gui.

;Ends the loop and begins the update

Case $msg = $Button_3 Or $msg = $GUI_EVENT_CLOSE

ExitLoop

EndSelect

Wend

---here is where the gui should become hidden---

Share this post


Link to post
Share on other sites



GUIDelete().

Share this post


Link to post
Share on other sites

GUIDelete().

Thanks for the quick reply and the information.

Share this post


Link to post
Share on other sites

Guidelete() does not accomplish what I needed, unfortunantly. I may not have posted enough of my script to clearly display what I needed.As seen below when I put GUIdelete where I want it hidden it is actually stopping the if/endif processes that follow. There are 47 if/ends that follow the point I want it hidden at.

From the help file:

Deletes a GUI window and all controls that it contains.

GUIDelete ( [winhandle])

;Ends the loop and begins the update

Case $msg = $Button_3 Or $msg = $GUI_EVENT_CLOSE

ExitLoop

EndSelect

Wend

----------Here is where I want the gui hidden--------------

;Check each profile to determine check or unchecked status

if guictrlread($ad)= "1" Then

SplashTextOn("", "Updating AD",200,30,450,100, 49, "", 13)

Runwait( @ComSpec & ' /c "nettracker.exe ad -update"')

SplashOff ()

Else

EndIf

if guictrlread($aecstore)= "1" Then

SplashTextOn("", "Updating AECSTORE",200,30,450,100, 49, "", 13)

RunWait(@ComSpec &......

Share this post


Link to post
Share on other sites

Thanks. I'll give that a try. In my test it looked to do what I wanted it to do.

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