Originally Posted by
Sychotix
The chances of one single pixel being unique to a screen/game is very unlikely, so you need to use image searching rather than pixel searching. If you start using clusters of pixels, those clusters are bound to change based on special effects that the game might have, the resolution of the game, the scale of the UI, the addons that players might be using, and pretty much anything else. The best solution for this is to tell the users to use the completely stock UI at 800 x 600 resolution with the scale of the UI set to max. Obviously this is a problem for most people.
OR instead of doing all this, you could simply read the memory and have it work no matter what settings you are using in the game.