autocomplex Posted September 16, 2007 Share Posted September 16, 2007 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. =) Want Runescape Specific Scripts and Bots?Visit AutoIt Runescape Team (ARST) forum! Link to comment Share on other sites More sharing options...
Paulie Posted September 16, 2007 Share Posted September 16, 2007 $Exitbox = MsgBox(36, "Would you like to quit?", "Select 'Yes' to quit, otherwise click 'No'") If $Exitbox = 6 then Exit Endif Link to comment Share on other sites More sharing options...
autocomplex Posted September 16, 2007 Author Share Posted September 16, 2007 thank you Want Runescape Specific Scripts and Bots?Visit AutoIt Runescape Team (ARST) forum! Link to comment Share on other sites More sharing options...
ResNullius Posted September 16, 2007 Share Posted September 16, 2007 Might also want to check out this simple logical wrapper for the message box function: http://www.autoitscript.com/forum/index.ph...st&p=403796 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now