realkiller 0 Posted December 1, 2006 if i use MsgBox(4, "hoi", "hoi") comes Hide realkiller's signature Hide all signatures Remote 3.1 BetaRemote Media Player ControlUSB Security 1.2 Share this post Link to post Share on other sites
Helge 3 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. Share this post Link to post Share on other sites
realkiller 0 Posted December 1, 2006 i looked but can you give a example Hide realkiller's signature Hide all signatures Remote 3.1 BetaRemote Media Player ControlUSB Security 1.2 Share this post Link to post Share on other sites
MHz 76 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 Share this post Link to post Share on other sites
realkiller 0 Posted December 1, 2006 thx i got it now Hide realkiller's signature Hide all signatures Remote 3.1 BetaRemote Media Player ControlUSB Security 1.2 Share this post Link to post Share on other sites
xcal 2 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 Hide xcal's signature Hide all signatures How To Ask Questions The Smart Way Share this post Link to post Share on other sites