Jump to content

uhmm, reminder on msgbox


Recommended Posts

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

this is an easy one guys... i just dont remember

anyone?

Edited 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

#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??

NEWHeader1.png

Link to comment
Share on other sites

$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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...