Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#NoEnv
#persistent
#singleinstance force
SetTitleMatchMode,2
CoordMode, Mouse, window
SetTimer, Check, 20
return
Check:
;IfWinActive, Diablo III
{
MouseGetPos, xx, yy
Tooltip_X := xx + 30
Tooltip_Y := yy
PixelGetColor, color, %xx%, %yy%
Tooltip %xx%`, %yy%`ncolor: %color%, Tooltip_X, Tooltip_Y
}
return
; PRESS ESC TO KILL/EXIT AUTOHOTKEY SCRIPT
Esc::ExitApp
the code is to get pixel color of current mouse pointer. now it display a color hex code only
Is it possible to display a color box in tooltip ?