Color of a screen pixel: Difference between revisions

broadened task somewhat
(→‎Tcl: Added implementation)
(broadened task somewhat)
Line 1:
{{task|GUI}}Get color information from an arbitrary pixel on the screen, such as the current location of the mouse cursor. The mouse cursor may or may not have to be active in a gui created by your program.
 
=={{header|AutoHotkey}}==
Line 6:
{
MouseGetPos, MouseX, MouseY
PixelGetColor, color, %MouseX%, %MouseY%
TrayTip, color, color at the current cursor is %color%.
sleep, 500
Anonymous user