If the colored area you are looking for is always bigger than a single pixel, you can speed up the scanning significantly by incrementing x and y in steps equal to the minimum size of the colored area. For instance if the area is always equal to, or bigger than, 2 x 2 pixels you can increment x and y by 2 without missing the target, and increase the scanning speed approximately 4 x. If the target is equal to or bigger than 10 x 10 pixels, then a 100 x speed increase is possible, and so on.Char wrote:but how long does the scanning take for ..umm for example
1024*768 screen
If you can define a limited area of the screen to search then that's another speed up possibility.
(Nice one Rain! Combined both questions in one macro )