could i display a color in tooltip ?

Get help with using AutoHotkey and its commands and hotkeys
takayo97
Posts: 22
Joined: 09 Jun 2018, 16:30

could i display a color in tooltip ?

12 Aug 2018, 16:49

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 ?
hunter99
Posts: 113
Joined: 20 Jan 2014, 17:57

Re: could i display a color in tooltip ?

12 Aug 2018, 17:24

Hi takayo97,
Try MagicBox by Alguimist from here:
https://autohotkey.com/boards/viewtopic.php?f=6&t=20983

Type MsgBixEx, lets you pick background color.
This might give you some ideas.

SORRY, this old brain flipped Tooltip and Msgbox. Getting to old. :cry:

This should do it.

ToolTipFont / ToolTipColor - options for the ToolTip command
by lexikos
Get it here.:
https://autohotkey.com/boards/viewtopic.php?f=6&t=4777


Good luck, hunter99

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], paik1002, Penguin and 198 guests