Jump to content

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()
    Select
        Case $msg = $GUI_EVENT_CLOSE or $msg = $b2
            Exit
        Case $msg = $b1
            Select
                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"
            EndSelect
            ExitLoop
    EndSelect
Wend

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

Thanks

Link to comment
Share on other sites

Use GuiDelete.


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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...