Sign in to follow this  
Followers 0
boltc

need help case select

4 posts in this topic

$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)

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

but now is the question this:

how can i remove the msgbox..

MsgBox(0, "", "continue with NO")

??

Share this post


Link to post
Share on other sites

and again fixed..

i changed:

MsgBox(0, "", "continue with NO")

to:

$test123 = 1

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