Sign in to follow this  
Followers 0
narfk1

Messege Box Input Help

2 posts in this topic

I'm trying to create a msgbox and get an input from it. f input is yes then i want to open up a web page if no then exit.

How to i get an input from the OK and CANCEL boxes on the MSGBOX?? Sorry if this is a no brainer not a programmer :whistle:

Here is the code i have so far

MsgBox(1, "TEST TITLE","Please Click Yes to take our survey")

If(1) Then Run("C:\Program Files\Mozilla Firefox\firefox.exe www.google.com")

if (0) Then Exit

This opens the page regardless of what you press. How do i set a variable to the OKand CANCEL Boxes and get the input when the user clicks OK or CANCEL?

Thanks,

Share this post


Link to post
Share on other sites



Ok. Heres whats happening. When you call the function message box it returns a value which can be picked up with a variable: ex:

$variable = MsgBox(1,"TEST TITLE","Please Click Yes to take our survey")
oÝ÷ Ùh^*.q©e!ýp«r¢êÛjÈjYr±¬¢¬!ý

There are several examples of this in the help file, which I highly suggest you read. Also, since your new I would suggest chicking this out:

http://www.autoitscript.com/forum/index.php?showtopic=21048


[center][/center]Working on the next big thing.Currently Playing: Halo 4, League of LegendsXBL GT: iRememberYhslaw

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