RGB(Decimal) Value With PixelGetColor Command does Not Working in Autohotkey.
I did Expect if you use the command Line: PixelGetColor, color, %MouseX%, %MouseY%, RGB
That it Will Give me as Result, a [RGB (Decimal) Value.] but it give me a [RGB (hex)]
and as Default if you use the command Line: PixelGetColor, color, %MouseX%, %MouseY%
That it then Will Give me as Result, a [RGB (Hex) Value] but it give me a [BGR (Hex) Value]
Note - i did re-edit my Question based on comments!
I Newer Hear from a BGR Format, and i do not understand why we want that.
I think the Users and me want more Results like this [Default:RGB>Hex Value] and with the Parameter [,RGB>Decimal Value]
The Question now is, How can i get the RGB(decimal) Value from PixelGetColor Command.
This AHK Script does not work.
Color Picker.ahk
;#notrayicon
#SingleInstance force
; + = Shift
; ! = Alt
; ^ = Ctrl
; # = Win (Windows logo key)
esc::exitapp ;You can click the (esc) key to stop the script.
f1::
MouseGetPos MouseX, MouseY
;PixelGetColor, color, %MouseX%, %MouseY% ;The default result is a BGR>Hex Value - i wish this should be RGB>Hex
PixelGetColor, color, %MouseX%, %MouseY%, RGB ;RGB Parameter i wish it should be have a RGB>Decimal value - otherwise this parameter does not have for me a useful function.
MsgBox,, , The color at the current cursor position is %color%., 3
return
Autohotkey docs Commands > PixelGetColor


PixelGetColor, color, %MouseX%, %MouseY%and then for decimal should bePixelGetColor, color, %MouseX%, %MouseY%, RGB- i Hope you understand why i did do that - but any way i want to thank you for that info. - stevecodyRGBoption for thePixelGetColorcommand does not give it in decimal. It specifies the order. The default will list it as BGR, with the red an blue swapped. From the link you posted, "RGB: Retrieves the color in RGB vs. BGR format. In other words, the red and the blue components are swapped." - EJE