Heres a function for searching for a bitmap within another bitmap. The heart of it is written assembly (source included) and working pretty quick I feel. I have included an example which is pretty basic and should be easily enough for anyone to get the concept.
You will be given a small blue window that will take a screencapture of that size:
It will then take a full screenshot and highlight all locations that it found
Please let me know if you have any issues or
I used _BmpSearch quite often. And I made some changes to improve usability:
now it is not a UDF, but a function
now the function accepts not only gdi32 hBitmap, but also GDI+ hImage or simply path to image file
now there is no problem with the alpha channel
now you can search for a 1x1 pixel image and get array of pixels
now the search time is returned to the $aCoords[0][1] in milliseconds
added error checking
#include <GDIPlus.au3>
&