Pixel is same but with difference position

07/04/2017 19:23 Melli-#1
I search a method, how I can find a pixel which more coordinates then one.

Example:
A pixel exist 3 times on my desktop (green for example), now I want to read out this 3 different pixel coordinates - how I can do this?

Pixel1: Coordinate 205,210 - green
Pixel2: Coordinate 305,495 - green
Pixel3: Coordinate 222,333 - green

How I can find this position for the pixels with Pixelsearch? - Sorry for bad english :(
07/04/2017 21:13 Moneypulation#2
[Only registered and activated users can see links. Click Here To Register...]

Blue = Searched Pixel
Black and Green borders = PixelSearch Area

If PixelSearch returns x and y as a blue pixel, you can pixelsearch 2 more rectangles to find the rest of the blue pixels. The first rectangle would be (top,left,bottom,right) = (y+1,originalLeft,originalBottom,x). With original I mean the same parameters as used in the previous pixelsearch. 2nd rectangle: (y,x+1,originalBottom,originalRight). If you find another blue pixel in these pixelsearchs, you must call this procedure recursively. In that way you would find all blue pixels and could return them as an array.

Or you use the FastFind.au3 with FFNearestPixel and FFAddExcluded Area doing more or less the same thing