Maika Posted May 23, 2007 Posted May 23, 2007 i know that return value of $coord = pixelsearch(left,top,right,bottom,0x000000) is @error but if i write two line : $coord0 = pixelsearch(left,top,right,bottom,0x000000) $coord1= pixelsearch(left,top,right,bottom,0x000001) $coord2= pixelsearch(left,top,right,bottom,0x000002) $coord3= pixelsearch(left,top,right,bottom,0x000003) so what is the return value of $coord1 , $coord2 , $coord3 ? thanks for helping
Zedna Posted May 23, 2007 Posted May 23, 2007 $error = 0 $coord0 = pixelsearch(left,top,right,bottom,0x000000) If @error Then $error = 1 $coord1= pixelsearch(left,top,right,bottom,0x000001) If @error Then $error = 1 $coord2= pixelsearch(left,top,right,bottom,0x000002) If @error Then $error = 1 $coord3= pixelsearch(left,top,right,bottom,0x000003) If @error Then $error = 1 If $error Then MsgBox(0,'Info',"Some of 0,1,2,3 pixels wasn't found") EndIf Resources UDF ResourcesEx UDF AutoIt Forum Search
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