Color of a screen pixel

From Rosetta Code
Revision as of 20:50, 27 May 2009 by rosettacode>Tinku99 (get pixel color in autohotkey)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Task
Color of a screen pixel
You are encouraged to solve this task according to the task description, using any language you may know.

Get color information from an arbitrary pixel on the screen, such as the current location of the mouse cursor

AutoHotkey

<lang AutoHotkey> loop, 200 { MouseGetPos, MouseX, MouseY PixelGetColor, color, %MouseX%, %MouseY% TrayTip, color, color at the current cursor is %color%. sleep, 500 } </lang>