Jump to content
Sign in to follow this  

Q: PixelSearch with shade-variation

Recommended Posts


How do I calculate total number of colors when I specify the color AC2511 with a variation of 1?


Share this post

Link to post
Share on other sites

Global $Area1X = 2750
Global $Area1Y = 100
Global $Area2X = 775
Global $Area2Y = 350
Global $Color = 0x754F20


$Coord = PixelSearch( $Area1X, $Area1y, $Area2X, $Area2y, $Color, 10,)
    $CoordError = @Error
    If $CoordError <> 1 then
        MouseMove ( $Coord[0], $Coord[1], 1 )
        sleep (2000)
        MsgBox(0, "Color Found:", $Coord[0] & "," & $Coord[1])
    ;MsgBox(0, "Color Error:", "Unable to Locate Color")
        MouseMove ( 200, 100, 2 )
        sleep (1500)
        MouseMove ( 850, 350, 2 )        

What I did was create a small rectangle of that color in photoshop, made sure it was my active window and within the borders of the search box.

However it will not find the color.


It appears that I am able to find some colors?

Is it just me, or is the search a bit buggy? Is there a range of colors that it's happier with?

Edited by Deviant

Share this post

Link to post
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

Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.