t0ddie Posted May 18, 2005 Share 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. Link to comment Share on other sites More sharing options...
t0ddie Posted May 19, 2005 Author Share 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. Link to comment Share on other sites More sharing options...
Valuater Posted May 19, 2005 Share 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?? Link to comment Share on other sites More sharing options...
herewasplato Posted May 19, 2005 Share 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] Link to comment Share on other sites More sharing options...
t0ddie Posted May 19, 2005 Author Share 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. 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