ทำเป็นโปรแกรมมาเลยเปิดมาก้อเอาเม้าไปชี้ตงไหนก้อได้มานจะดึงเอาระหัสสีออกมานะงับ โคดแก้มาจากโคดท่าน pos ที่ทำให้นานแย้วจนจำม้ายด้าย 555555 เอาปายเล่นกันดูนะ
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <WinAPI.au3>
#include <Misc.au3>
Opt("GUIOnEventMode", 1)
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("หาสี", 385, 213, 192, 124)
$Edit1 = GUICtrlCreateEdit("", 8, 8, 225, 193)
GUICtrlSetData(-1, "")
$Button1 = GUICtrlCreateButton("", 240, 8, 139, 105, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
Dim $gcolor2
While 1
While Not _IsPressed('02') ;กดปุ่มขวาเม้าปิดโปรแกรมนะ
$pos = _WinAPI_GetMousePos()
$gcolor = PixelGetColor(DllStructGetData($pos, "X"), DllStructGetData($pos, "Y"))
If $gcolor <> $gcolor2 Then
GUICtrlSetBkColor($Button1, $gcolor)
GUICtrlSetData($Edit1, Hex($gcolor, 6))
$gcolor2 = $gcolor
EndIf
Sleep(100)
WEnd
Exit
Sleep(100)
WEnd