xcxooxl Posted March 31, 2007 Posted March 31, 2007 how can i do somthing like if user press yes do somthing and no somthing els somthing like the old ifmsgbox
Helge Posted March 31, 2007 Posted March 31, 2007 (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 March 31, 2007 by Helge
xcxooxl Posted March 31, 2007 Author Posted March 31, 2007 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" )
Helge Posted March 31, 2007 Posted March 31, 2007 $x = MsgBox (20, "???? ????!!", "????? ?? ?????.. ?? ???? ???" ) If $x = 6 Then MsgBox (20, "asdsa", "sadasda" ) EndIf You messed up at least twice there.
xcxooxl Posted March 31, 2007 Author Posted March 31, 2007 now its not working at all =/ i mean it does nothing
Helge Posted March 31, 2007 Posted March 31, 2007 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
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