Sign in to follow this  
Followers 0
Stuperman

If MsgBox=?

5 posts in this topic

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.

Share this post


Link to post
Share on other sites



Just test for the value of $rc using this code:

$rc = MsgBox(36,"Wireless","Does this computer connect to a wireless network?")

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Thank you Jos, that worked great. Appreciate it.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0