t0ddie 0 Posted May 18, 2005 its not in the new help file..... i want an example of an if statement that i would use on a messagebox... if "yes then blah.. endif if no then blah.. endif if cancel then.. you know? i dont remember the syntax for how to do this.. and its not in the new helpfile. i think i remember it being something like if button = "yes" dunno... Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you. Share this post Link to post Share on other sites
t0ddie 0 Posted May 19, 2005 (edited) this is an easy one guys... i just dont remember anyone? Edited May 19, 2005 by t0ddie Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you. Share this post Link to post Share on other sites
Valuater 130 Posted May 19, 2005 #Region --- CodeWizard generated code Start --- ;MsgBox features: Title=Yes, Text=Yes, Buttons=Yes, No, and Cancel, Icon=Info, Timeout=15 ss, Miscellaneous=Top-most attribute If Not IsDeclared("iMsgBoxAnswer") Then Dim $iMsgBoxAnswer $iMsgBoxAnswer = MsgBox(262211,"Info box","Place your text here",15) Select Case $iMsgBoxAnswer = 6 ;Yes Case $iMsgBoxAnswer = 7 ;No Case $iMsgBoxAnswer = 2 ;Cancel Case $iMsgBoxAnswer = -1 ;Timeout EndSelect #EndRegion --- CodeWizard generated code End --- cool tool enjoy............ America's Army?? Share this post Link to post Share on other sites
herewasplato 2 Posted May 19, 2005 $ans = MsgBox(3, "AutoIt", "Question?") If $ans = 6 Then $This = "That" If $ans = 7 Then MsgBox(0, "AutoIt", "You answered NO!") If $ans = 2 Then Exit See the help file under MsgBox for more "Return Values". ...sure, beat me to it....Valuater.... [size="1"][font="Arial"].[u].[/u][/font][/size] Share this post Link to post Share on other sites
t0ddie 0 Posted May 19, 2005 ahh yes, the variable. of course, ty! Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you. Share this post Link to post Share on other sites