; Dec2Hex.ahk
Dec2Hex(Var){
; Convert a decimal integer to hexadecimal:
SetFormat, IntegerFast, hex
Dec2Hex += Var ; Sets Dec2Hex (which previously contained 11) to be 0xb.
Dec2Hex .= "" ; Necessary due to the "fast" mode.
SetFormat, IntegerFast, d
StringTrimLeft, Dec2Hex, Dec2Hex, 2 ; removes 0x from the string
StringUpper, Dec2Hex, Dec2Hex ; makes it all caps
sDec2Hex .=
...
Read more »