[0] Get Pixel Color from the Mouse Position [2] Click Here [3] Click Here [1] 
A example of how to get the pixel color from a window where the mouse cursor position is located. This example uses GetPixel, and WindowFromPoint API calls.