Jump to content
Sign in to follow this  
Stuperman

If MsgBox=?

Recommended Posts

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?")

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.
  :)

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

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...