Sign in to follow this  
Followers 0
xcxooxl

need help with yes/no msgbox

6 posts in this topic

how can i do somthing like

if user press yes do somthing and no somthing els

somthing like the old ifmsgbox

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Return Value : Success: Returns the ID of the button pressed.

(YES - 6, NO - 7)

Very basic stuff...the rest you should manage to figure out yourself.

Edited by Helge

Share this post


Link to post
Share on other sites

MsgBox (16, "אחלת אותה!!", "אחד באפריל!!!" )

MsgBox (16, "אחלת אותה!!", "כמה חבל ניראה שניתקעת איתי חח" )

MsgBox (16, "אכלת אותה!!", "אבל יש דרך לצאת מזה מהר יותר.. פשוט תענה על השאלה הבאה" )

MsgBox (20, "אכלת אותה!!", "האם אתה הומו?" )

$x = MsgBox (16, "אכלת אותה!!", "תשובה לא נכונה.. בו ננסה שוב" )

If $x - 6 Then

MsgBox (20, "asdsa", "sadasda" )

EndIf

like this?

you wont understand the text because its in hebrew

but look no metter what i choose it the end it will do

MsgBox (20, "asdsa", "sadasda" )

Share this post


Link to post
Share on other sites

$x = MsgBox (20, "???? ????!!", "????? ?? ?????.. ?? ???? ???" )
If $x = 6 Then
    MsgBox (20, "asdsa", "sadasda" )
EndIf

You messed up at least twice there.

Share this post


Link to post
Share on other sites

now its not working at all =/

i mean it does nothing

Share this post


Link to post
Share on other sites

Really ? Because on my system if I press 'Yes' on the first a second MsgBox pops up. If I press 'No' then nothing happens.

What happens on your system then ? Nothing as in... plain nothing. What does this do then ? Nothing ?

$ask = MsgBox(16+4, "", "Put that cursor over one of those buttons below and click the left mouse-button")
If $ask = 6 Then
    MsgBox(64, "", "Congratulations, you pressed 'Yes'.")
Else
    MsgBox(64, "", "Oh my, you managed to click 'No'.")
EndIf

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