title: RGB Value With PixelGetColor Not Working in Autohotkey
body: <p><strong>RGB(Decimal) Value With PixelGetColor Command does Not Working in Autohotkey.</strong></p>
  
  <p>I did Expect if you use the command Line: <code>PixelGetColor, color, %MouseX%, %MouseY%, RGB</code></p>
  
  <p>That it Will Give me as Result, a [RGB (Decimal) Value.] but it give me a [RGB (hex)]</p>
  
  <p>and as Default if you use the command Line: <code>PixelGetColor, color, %MouseX%, %MouseY%</code> </p>
  
  <p>That it then Will Give me as Result, a [RGB (Hex) Value] but it give me a [BGR (Hex) Value]</p>
  
  <p>Note - i did re-edit my Question based on comments!</p>
  
  <p>I Newer Hear from a BGR Format, and i do not understand why we want that.</p>
  
  <p>I think the Users and me want more Results like this [Default:RGB>Hex Value] and with the Parameter [,RGB>Decimal Value]  </p>
  
  <p>The Question now is, How can i get the RGB(decimal) Value from PixelGetColor Command.</p>
  
  <p>This AHK Script does not work.</p>
  
  <p>Color Picker.ahk</p>
  
  <pre><code>;#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&gt;Hex Value - i wish this should be RGB&gt;Hex
  PixelGetColor, color, %MouseX%, %MouseY%, RGB ;RGB Parameter i wish it should be have a RGB&gt;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
  </code></pre>
  
  <p>Autohotkey docs Commands > <a href="https://autohotkey.com/docs/commands/PixelGetColor.htm" rel="nofollow noreferrer">PixelGetColor</a></p>
  
  <p><a href="https://i.stack.imgur.com/GEHXH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GEHXH.png" alt="color picker"></a></p>