Stuperman Posted January 18, 2008 Share Posted January 18, 2008 MsgBox(36,"Wireless","Does this computer connect to a wireless network?") I need to be able to take the value of Yes (6) and the value of No (7) and use them in an if then statement. If the msgbox returns a value of 6 then, blah, if it returns a value of 7 then blah. Any help would be greatly appreciated. Link to comment Share on other sites More sharing options...
Developers Jos Posted January 18, 2008 Developers Share Posted January 18, 2008 Just test for the value of $rc using this code: $rc = MsgBox(36,"Wireless","Does this computer connect to a wireless network?") SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
erezlevi Posted January 18, 2008 Share Posted January 18, 2008 MsgBox(36,"Wireless","Does this computer connect to a wireless network?")I need to be able to take the value of Yes (6) and the value of No (7) and use them in an if then statement. If the msgbox returns a value of 6 then, blah, if it returns a value of 7 then blah.Any help would be greatly appreciated.why using a msgbox and not GUI? with GUI you can create buttons and according to the user selection to create what you want. Link to comment Share on other sites More sharing options...
Stuperman Posted January 18, 2008 Author Share Posted January 18, 2008 Because I just want a simple MsgBox. Yes or no. I don't need anything more than that. Plus I am just starting out with scripting. Don't know that much yet. Link to comment Share on other sites More sharing options...
Stuperman Posted January 18, 2008 Author Share Posted January 18, 2008 Thank you Jos, that worked great. Appreciate it. 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