Simply create a script to record pixels, but, the trick is to record the pixel 1 second after the hotkey has been triggered. (move your mouse away from the area so it doesn't interfer)
Wouldn't it be easier for it to record the coords, IniWrite them, have it move the mouse, then run a PixelGetColor with your coords that were recorded?