Here is an extremely useful script that I use to assist in writing macros...
//displays the pixel color value at the mouse pointer & the x,y coordinates
label>loop
GetCursorPos>x,y
GetPixelColor>x,y,pc
message>x=%x% y=%y% pixel=%pc%
goto>loop
This little routine makes programming screen interaction a simple task.
Happy Computing...
Waldo