Syntaxe 0 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") } Share this post Link to post Share on other sites
Nahuel 1 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. Share this post Link to post Share on other sites
Foy 0 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 Share this post Link to post Share on other sites
Syntaxe 0 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 Share this post Link to post Share on other sites
Nahuel 1 Posted October 14, 2007 ...\Program Files\AutoIt3\Examples\GUI\Advanced\msgboxwizard.au3 Share this post Link to post Share on other sites