On a topic here: http://www.autoitscript.com/forum/index.php?showtopic=95554 I was trying to understand what the OP was trying to do, I think I may have still missed the boat with him, but this function came out of it (so most of this is a simple copy and paste). Things to know. You must send an array of colors, these colors will be left to right, top to bottom (and must be the same ubound as the width*height). So if I have a 2 pixel width, and a 2 pixel height area I want to search, and