📜  pixelgetcolor ahk - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:19.353000             🧑  作者: Mango

代码示例1
;PixelGetColor, color, 20, 500
;color is the variable of pixelcolor, the x and y axis follow.
;Example:
Layer1:
MouseGetPos, x, y                ;The x and y axis are stored in the variable "x" and  "y".
PixelGetColor, color, %x%, %y%    ;retrieve the color at the mousepointer
ToolTip, %color%                ;shows the color at a tooltip
Goto, Layer1                    ;goto the first layer so the loop can continue