Jump to content
Sign in to follow this  

Close GUI Window after selection

Recommended Posts


I have this GUI Window that asks user to check a radio button and click Continue to run the rest of the script based on the selection, but how do I make it so that the GUI windows closes as soon as the user hit continue? right now it stays open through the entire script...

$program = ""
While 1
   $msg = GUIGetMsg()
        Case $msg = $GUI_EVENT_CLOSE or $msg = $b2
        Case $msg = $b1
                Case GUICtrlRead($r1) = $GUI_CHECKED
                    $program = "all"
                Case GUICtrlRead($r2) = $GUI_CHECKED
                    $program = "qedit"
                Case GUICtrlRead($r3) = $GUI_CHECKED
                    $program = "btcall"
                Case GUICtrlRead($r4) = $GUI_CHECKED
                    $program = "atomic"
                Case GUICtrlRead($r5) = $GUI_CHECKED
                    $program = "vnc"
                Case GUICtrlRead($r6) = $GUI_CHECKED
                    $program = "dates"
                Case GUICtrlRead($r7) = $GUI_CHECKED
                    $program = "perl"
                Case GUICtrlRead($r8) = $GUI_CHECKED
                    $program = "acrobat"
                Case GUICtrlRead($r9) = $GUI_CHECKED
                    $program = "wordv"
                Case GUICtrlRead($r10) = $GUI_CHECKED
                    $program = "excelv"
                Case GUICtrlRead($r11) = $GUI_CHECKED
                    $program = "winzip"

r1 to r11 are radios and b1 is continue and b2 is exit


Share this post

Link to post
Share on other sites

Use GuiDelete.

Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

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