dpaschal Posted April 5, 2006 Posted April 5, 2006 I know what the yes and no options return for the msgbox() function(6 and 7 respectively), but I am not sure how to test and figure out which one returned. I ran the autoit123 and also looked in help, but I can't find it. Help anyone? I know it has to be simple like if $?=6 then do something, but I can't seem to figure it out.
Valuater Posted April 5, 2006 Posted April 5, 2006 (edited) if you go to Scite press Tools > Code Wizard the first page is a message box builder you can use to create and test message boxes... then Press Copy and it will copy the info to the Scite Screen 8) Edited April 5, 2006 by Valuater
seandisanti Posted April 5, 2006 Posted April 5, 2006 I know what the yes and no options return for the msgbox() function(6 and 7 respectively), but I am not sure how to test and figure out which one returned. I ran the autoit123 and also looked in help, but I can't find it. Help anyone? I know it has to be simple like if $?=6 then do something, but I can't seem to figure it out.no problem, welcome to the forum. assign the msgbox call to a variable, the value returned will be stored in the variable... ex: $blah = msgbox(4,"blah","pick yes or no") if $blah = 6 then msgbox(0,"you picked","you clicked yes") else msgbox(0,"you picked","you clicked no") EndIf
CyberSlug Posted April 5, 2006 Posted April 5, 2006 $result = MsgBox(0x4, "Title,"Text goes here") If $result = 6 Then MsgBox(0x0,"Info","You clicked Yes...") EndIf Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
dpaschal Posted April 5, 2006 Author Posted April 5, 2006 no problem, welcome to the forum. assign the msgbox call to a variable, the value returned will be stored in the variable... ex: $blah = msgbox(4,"blah","pick yes or no") if $blah = 6 then msgbox(0,"you picked","you clicked yes") else msgbox(0,"you picked","you clicked no") EndIf excellent! That is what I needed. Thanks for the quick responses guys.
seandisanti Posted April 5, 2006 Posted April 5, 2006 excellent! That is what I needed. Thanks for the quick responses guys.always glad to help.
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