Deviant Posted November 11, 2004 Share Posted November 11, 2004 How do I calculate total number of colors when I specify the color AC2511 with a variation of 1? Thanks. Link to comment Share on other sites More sharing options...
Deviant Posted November 11, 2004 Author Share Posted November 11, 2004 (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 November 11, 2004 by Deviant Link to comment Share on other sites More sharing options...
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