I need to write script like this:
if (PixelSearch && (other)PixelSearch == true)
{
// code
}
So I need to use Errorlevel, but how use Errorlevel with 2 different PixelSearch? Please help!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I haven’t worked with AutoIt code lately, but I would solve it like this:
The ‘Ubound’ returns the count of an array, and when a PixelSearch succeeded, the variable should be filled with a 2-dimensional array with the coords 🙂
For more info on that, check: http://www.autoitscript.com/autoit3/docs/functions/PixelSearch.htm
I’m not sure if the double pipeline (||) is the OR statement in autoIt, but you can look that up.