Kyme Posted June 4, 2008 Share Posted June 4, 2008 (edited) i wanna make one msgbox whit yes and no like this MsgBox(4, "Test", "Press???", 10) While 1 $msg = GUIGetMsg() If $msg = "Yes" Then MsgBox(4, "Test", "y", 10) Exit EndIf If $msg = "No" Then MsgBox(4, "Test", "n", 10) Exit EndIf WEnd but mine don't work....i wanna make it when i press yes to msgbox "y" and when no "n" how can i make it to work??? tnx sorry for duble theard....i don't know why i make duble time....sry again Edited June 4, 2008 by Kyme Link to comment Share on other sites More sharing options...
sandin Posted June 4, 2008 Share Posted June 4, 2008 $question = MsgBox(4, "test", "press???") if $question = 6 Then MsgBox(0, "Test", "YES has been pressed") Else MsgBox(0, "Test", "NO has been pressed") EndIf Some cool glass and image menu | WinLIRC remote controler | Happy Holidays to all... | Bounce the sun, a game in which you must save the sun from falling by bouncing it back into the sky | Hook Leadtek WinFast TV Card Remote Control Msges | GDI+ sliding toolbar | MIDI Keyboard (early alpha stage, with lots of bugs to fix) | Alt+Tab replacement | CPU Benchmark with pretty GUI | Ini Editor - Edit/Create your ini files with great ease | Window Manager (take total control of your windows) Pretty GUI! | Pop-Up window from a button | Box slider for toolbar | Display sound volume on desktop | Switch hotkeys with mouse scroll Link to comment Share on other sites More sharing options...
Kyme Posted June 4, 2008 Author Share Posted June 4, 2008 $question = MsgBox(4, "test", "press???") if $question = 6 Then MsgBox(0, "Test", "YES has been pressed") Else MsgBox(0, "Test", "NO has been pressed") EndIftnx man....it work.... cya Link to comment Share on other sites More sharing options...
Bert Posted June 4, 2008 Share Posted June 4, 2008 It is in the helpfile. if you don't know where to look, here:http://www.autoitscript.com/autoit3/docs/f...ions/MsgBox.htm The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
AlmarM Posted June 4, 2008 Share Posted June 4, 2008 Just one more thing. U did GUICtrlRead()oÝ÷ ØhË b²{fi×°ØZºÚ"µÍÕRPÜX]J -AlmarM- Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
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