realkiller Posted December 1, 2006 Posted December 1, 2006 if i use MsgBox(4, "hoi", "hoi") comes Remote 3.1 BetaRemote Media Player ControlUSB Security 1.2
Helge Posted December 1, 2006 Posted December 1, 2006 Look at the return-values of MsgBox in the helpfile. Use If/EndIf to check the returned value and make it perform actions correspondingly.
realkiller Posted December 1, 2006 Author Posted December 1, 2006 i looked but can you give a example Remote 3.1 BetaRemote Media Player ControlUSB Security 1.2
MHz Posted December 1, 2006 Posted December 1, 2006 (edited) Seems strange at your 112 post count but here goes.... $result = MsgBox(4, "Question", "Yes or No") If $result = 6 Then MsgBox(0, $result, 'You pressed Yes') ElseIf $result = 7 Then MsgBox(0, $result, 'You pressed No') EndIf Does that help you? Edit: Hold on. Flag 4 is Yes/No Edit: corrected code. Edited December 1, 2006 by MHz
realkiller Posted December 1, 2006 Author Posted December 1, 2006 thx i got it now Remote 3.1 BetaRemote Media Player ControlUSB Security 1.2
xcal Posted December 1, 2006 Posted December 1, 2006 I had prepared this for a response and don't want it to go to waste. Do $question = MsgBox(4, 'Question', 'Should you study the help file a little harder?') If $question = 6 Then MsgBox(0, 'Correct', 'You''ve answered correctly.') Else MsgBox(0, 'Wrong', 'Wrong answer, try again!') EndIf Until $question = 6 How To Ask Questions The Smart Way
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