Sign in to follow this  
Followers 0
yhack

Pixel Search for NOT a colour

4 posts in this topic

Hi,

How do I use pixel search to look for a colour which isn't white?

The background is white so i need to get every colour which isn't white, and then drag that to somewhere.

Thanks

Share this post


Link to post
Share on other sites



Hi,

How do I use pixel search to look for a colour which isn't white?

You might try searching for everything that's black, but give it a really big shade variation...

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

You'd probably want to use PixelGetColor. Set it in a doubble while loop to set your "search box". Somthing like this (not actual code just the idea)

For $X=0 to $xMax
     For $Y=0 to $yMax
         $color=PixelGetColor($x,$y)
         if $color<>'white' then
              signify somthing (maybe set an array to keep track)
         endif
     Next
Next
Edited by evilertoaster

Share this post


Link to post
Share on other sites

PixelSearch( left, top, right, bottom, color)

If @error Then

     ; color not found, do w/e

EndIf

Nomad :D

Edit: my bad, I see it's not going to be that simple to do what you want. I just woke up. :D


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