narfk1 Posted March 27, 2007 Posted March 27, 2007 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 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,
BillLuvsU Posted March 27, 2007 Posted March 27, 2007 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
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