Jump to content

About PixelSearch


Recommended Posts

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

Link to comment
Share on other sites

$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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...