I do not know if this will help or not, but it is the AutoIt code that I was using in the lastDFX skin for creating the include file. (This is now handled in DFX5 with the DFX5.dll) This code also converts the color passed to it from HEX to RGB.
I put in a few msg boxes that you can un-comment to see what it happening, as well as some comments to show what sections do what.....
You will need to get your Hex color into a variable, say you call the variable $HexColorCode$.
$RRFile = $cmdlineraw
;MsgBox(4096, "", $RRFile)
;Gets the RGB COlor passed fom RR
$RGBcolor = $cmdline
;Convert the RGB color to the 3 colors that RR Requires
$R = BitAND( BitShift($RGBcolor, 16), 0xff)
$G = BitAND( BitShift($RGBcolor, 8), 0xff)
$B = BitAND($RGBcolor, 0xff)
;MsgBox(4096, "", $R & "," & $G & "," & $B)
;Write These values to the include file
_FileWriteToLine("..\DFX_Font_Color.txt", 1, "/DEFINE DFX1R " & $R, 1)
_FileWriteToLine("..\DFX_Font_Color.txt", 2, "/DEFINE DFX1G " & $G, 1)
_FileWriteToLine("..\DFX_Font_Color.txt", 3, "/DEFINE DFX1B " & $B, 1)
To pass the variable from RR to the script, use the following command:
If you colors are already in RGB, then you will not need convert, and will have to alter the script a bit.