Sign in to follow this  
Followers 0
autocomplex

Test MsgBox Selection

4 posts in this topic

I am trying to test if Yes is clicked in a msg box then the program (script) will exit. If No then the msgbox closes(this is the default)

Case $msg[0] = $AFMenuExit And $msg[1] = $AFGUI
        MsgBox(36, "Would you like to quit?", "Select 'Yes' to quit, otherwise click 'No'")
        If $msg = 6 then 
            Exit
        Endif

I know the above doesn't work, but what do i need to change to make it work?

Any help would be greatly appreciated. =)

Share this post


Link to post
Share on other sites



$Exitbox = MsgBox(36, "Would you like to quit?", "Select 'Yes' to quit, otherwise click 'No'")
        If $Exitbox = 6 then
            Exit
        Endif

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