Jump to content
Sign in to follow this  
oozma

Area pixel search

Recommended Posts

oozma

Hi All,

[rephrase]

I'm looking to create a script that would run pixelsearch on a rectangle, and look for a color that is NOT $value and click on it. After clicking, say that pixel 'disappears'. I then want it to continue searching the rectangle and click again if another value other than $value is found and repeat until the entire box has been searched.

Is this possible? :/ I haven't found anything like it in search or the help file.

Edited by oozma

Share this post


Link to post
Share on other sites
oozma

No ideas at all? :P Basically... say I have a pure black square. I want it to not do anything to the black, but if a white oval appeared it would click it. Is this possible with pixelsearch or should I be using a different type of command? It seems like pixel search will only look for a color, not a 'not' color

Share this post


Link to post
Share on other sites
Siberio

No ideas at all? :P Basically... say I have a pure black square. I want it to not do anything to the black, but if a white oval appeared it would click it. Is this possible with pixelsearch or should I be using a different type of command? It seems like pixel search will only look for a color, not a 'not' color

One possible thought is you could use the pixelchecksum. If the shapes were big enough you might be able to find it. (all you need to know is the checksum of a square of all black pixels in your example. You could have it make a grid of what it checks and if one of the grid squares turns narrow it down untill your close enough.

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  

×