Syntaxe Posted October 14, 2007 Posted October 14, 2007 How can I get this to work? If they click yes on the MsgBox 4 they end up with "Continuing". If they click no on the MsgBox 4, they end up with "Exit". Thanks for helping! MsgBox(4, "Sure?", "Are you sure you want to continue?") If { MsgBox(64, "Title", "Continuing") } Else { MsgBox(64, "Title", "Exit") }
Nahuel Posted October 14, 2007 Posted October 14, 2007 Dim $iMsgBoxAnswer $iMsgBoxAnswer = MsgBox(4,"Sure?","Are you sure you want to continue?") Select Case $iMsgBoxAnswer = 6 ;Yes MsgBox(64, "Title", "Continuing") Case $iMsgBoxAnswer = 7 ;No MsgBox(64, "Title", "Exit") EndSelect AutoIt MsgBox wizard is great. Use it.
Foy Posted October 14, 2007 Posted October 14, 2007 (edited) $response = MsgBox(4, "Sure?", "Are you sure you want to continue?") If $response = 6 then MsgBox(64, "Title", "Continuing") Else MsgBox(64, "Title", "Exit") EndIf Edited October 14, 2007 by Foy
Syntaxe Posted October 14, 2007 Author Posted October 14, 2007 (edited) Thanks for that fast reply! Now I got it to work ^^ Edit; Btw, where is the MsgBox wizard? Edited October 14, 2007 by Syntaxe
Nahuel Posted October 14, 2007 Posted October 14, 2007 ...\Program Files\AutoIt3\Examples\GUI\Advanced\msgboxwizard.au3
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