#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. #SingleInstance force Menu, Tray, Icon, Shell32.dll, 162 SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. ^Mbutton:: MouseGetPos, MouseX, MouseY PixelGetColor, color, %MouseX%, %MouseY%,RGB color:=RegExReplace(color, "^0x" ,"#") Clipboard:=color return