Sign in to follow this  
Followers 0
Deviant

Q: PixelSearch with shade-variation

2 posts in this topic

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

Thanks.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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

sleep(5000)

$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])
    Else
    ;MsgBox(0, "Color Error:", "Unable to Locate Color")
        MouseMove ( 200, 100, 2 )
        sleep (1500)
        MouseMove ( 850, 350, 2 )        
    EndIf

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.

But

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  
Followers 0