Jump to content

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.

Link to comment
Share on other sites

  • Developers

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

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...