Code: Select all
CoordMode, ToolTip, screen
CoordMode, Pixel, Screen
RatioX := 251 / 1920
RatioY := 203 / 1080
;~ loop
;~ {
;~ gosub Timer1
;~ }
;~ Return
SetTimer, Timer1, 1000
Return
Timer1:
{
SysGet, Monitor, Monitor, 1
X := RatioX * MonitorRight
Y := RatioY * MonitorBottom
PixelGetColor, color, %X%, %Y%
tooltip %MonitorRight%_%MonitorBottom%_%X%_%Y%, 100,100,1
;~ MsgBox The color at the current cursor position is %color%.
tooltip %color%, 500, 500,2
return
}
Code: Select all
CoordMode, ToolTip, screen
CoordMode, Pixel, Screen
RatioX := 251 / 1920
RatioY := 203 / 1080
SetTimer, Timer1, 1000
Return
Timer1:
{
SysGet, Monitor, Monitor, 1
X := RatioX * MonitorRight
Y := RatioY * MonitorBottom
PixelGetColor, color1, X + 1, Y + 1
PixelGetColor, color2, X + 1, Y - 1
PixelGetColor, color3, X - 1, Y + 1
PixelGetColor, color4, X + 1, Y - 1
PixelGetColor, color5, X, Y
;~ tooltip %MonitorRight%_%MonitorBottom%_%X%_%Y%, 500,500,1
tooltip %color1%`n%color2%`n%color3%`n%color4%`n%color5%, 500, 500, 2
return
}