05-27-2011, 01:53 PM
Quote:colors of several pixels
This is the most difficult case.
To compare exact image, could use scan.
To compare single pixel, could use pixel, like QM_Expert did.
Now probably need to call pixel many times.
pixel is quite slow, therefore it is better to use function GetRectPixels to get colors of all pixels in the window into array, and then compare elements of the array. The function is here:
How to get Bitmap bits array (RGB)