Jump to content

need help case select


boltc
 Share

Recommended Posts

$test_button = GuiCtrlCreateButton ("test button", 301,196,48,20)


While 1
   $msg = GUIGetMsg()

      Case $msg = $test_button
        $test = MsgBox(4, "test", "yes or no?")
            Select
               Case $test = 7
                  <<<<<<<<<<<HERE>>>>>>>>>>
                  
               Case $test = 6
                  MsgBox(0, "", "you dit pick yes")
             EndSelect

      Case $no
         MsgBox(0, "", "bye bye")

i want this:

when someone hit the button "no" then i want that the script continue's with the 'case $no', what do i need to write to: <<<<<<<<<<<HERE>>>>>>>>>>

(sorry for my bad english)

Link to comment
Share on other sites

it works already...

i did this:

$test_button = GuiCtrlCreateButton ("test button", 301,196,48,20)

global $no

While 1
   $msg = GUIGetMsg()
 Select
      Case $msg = $test_button
        $test = MsgBox(4, "test", "yes or no?")
            Select
               Case $test = 7
                  $no = MsgBox(0, "", "continue with NO")
                  
               Case $test = 6
                  MsgBox(0, "", "you dit pick yes")
             EndSelect

      Case $no
         MsgBox(0, "", "bye bye")

 EndSelect
WEnd
Edited by boltc
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...