Oldschool Posted November 14, 2007 Posted November 14, 2007 (edited) Alright, I got a script that takes some variables from it's user... And then when a button is pressed I have it do the following: WinSetState("MyGUIName", "", @SW_HIDE) But what if I want to close the window completely, and keep the rest of the script running?? If I use something like this: While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit Case $msg = $button_pause Run2Pause() ExitLoop EndSelect WEnd It kills the entire script... Is there a way to kill the GUI without killing the script?? Edited November 14, 2007 by Oldschool
ChrisL Posted November 14, 2007 Posted November 14, 2007 Look at GUIDelete ( [winhandle] ) Exitloop instead of exit, this will quit the while loop and allow you to do other stuff after the while loop [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire
PsaltyDS Posted November 14, 2007 Posted November 14, 2007 You might learn to use GuiOnEventMode, as yet another option. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
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