Sign in to follow this  
Followers 0
Guest BoobCHUUB

MsgBox Help

2 posts in this topic

Well I just want to ask something.

How do you tell what the button the user has pressed in a message box? I am using this script:

MsgBox(4,"Hello","Do you want to play a game?")

If MsgBox=6 Then

;Blah blah blah

EndIf

I know what bit is wrong, its the If MsgBox=6 bit. But I do not know how to fix it. Can anyone help me please? :ph34r:

Share this post


Link to post
Share on other sites



6 = Yes

7 = No

$answer = MsgBox(4,"Hello","Do you want to play a game?")
If $answer = 6 Then
;Blah blah blah
EndIf

We have enough youth. How about a fountain of SMART?

Share this post


Link to post
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
Sign in to follow this  
Followers 0