I'm trying to setup a pixel loader to scan tool icons on our mapping tools to replace sleep() function. While a tool is processing the idea is to scan the areas with the tool icon to capture the pixel colors and repeat until the tool popup appears with the results allowing the program to close the popups and continue loop. I've defined one section with coordinates to capture the icon but I can't figure out how to write/store each pixel coordinate x, y, and pixel color.
#include <GU