PHP Code:
#include <GUIConstantsEx.au3>
#include <EditConstants.au3>
#include <WindowsConstants.au3>
Opt("GUIOnEventMode", 1)
$Form1_1 = GUICreate(" COLOR COLOR(HEX) MOUSE X MOUSE Y ", 689, 22, 189, 252, BitOR($WS_CAPTION ,$WS_SYSMENU), $WS_EX_TOOLWINDOW)
GUISetOnEvent($GUI_EVENT_CLOSE, "_exit")
GUISetState(@SW_SHOW)
WinSetOnTop(" COLOR COLOR(HEX) MOUSE X MOUSE Y ", "", 1)
$ms0 = MouseGetPos()
$clr2 = 1
While 1
$ms1 = MouseGetPos()
If $ms0[0] <> $ms1[0] Then
$clr = PixelGetColor($ms0[0], $ms0[1])
$Label3 = GUICtrlCreateLabel($ms0[0], 400, 0, 51, 20)
GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
$ms0 = MouseGetPos()
If $clr2 <> $clr Then
$Label1 = GUICtrlCreateLabel($clr, 32, 0, 115, 20)
GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
$Label2 = GUICtrlCreateLabel(Hex($clr), 192, 0, 115, 20)
GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
$clr2 = PixelGetColor($ms0[0], $ms0[1])
Else
sleep(1)
EndIf
Else
sleep(1)
EndIf
If $ms0[1] <> $ms1[1] Then
$clr = PixelGetColor($ms0[0], $ms0[1])
$Label4 = GUICtrlCreateLabel($ms0[1], 560, 0, 51, 20)
GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
$ms0 = MouseGetPos()
If $clr2 <> $clr Then
$Label1 = GUICtrlCreateLabel($clr, 32, 0, 115, 20)
GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
$Label2 = GUICtrlCreateLabel(Hex($clr), 192, 0, 115, 20)
GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
$clr2 = PixelGetColor($ms0[0], $ms0[1])
Else
sleep(1)
EndIf
Else
sleep(1)
EndIf
WEnd
Func _exit()
Exit
EndFunc