Search the Community
Showing results for tags 'hex conversion'.
For some reason, I can't convert to Hex a Decimal color that has been calculated. For example, this works: Local $iColor = 3310546 ConsoleWrite("$iColor (dec): " & $iColor & ", $iColor (hex): " & Hex($iColor, 6) & @CRLF) giving the expected output: $iColor (dec): 3310546, $iColor (hex): 3283D2 But if I want to take an average of several colors, I have a problem. For example this doesn't work: $iColor = (3310546 + 3310546) / 2 ConsoleWrite("$iColor (dec): " & $iColor & ", $iColor (hex): " & Hex($i
Hi, I have a file and I'm using the following code to get its hex and export it to a text file. Local $FileOpen, $FileRead, $Hex $FileOpen = FileOpen("C:\game.save",16) $FileRead = FileRead($FileOpen) FileClose($FileOpen) ;convert to hex $Hex = Hex($FileRead) FileWrite("C:\save.txt",$Hex) My question is, once I have made my changes to the hex values i'm looking for, how do I convert it back to its original readable format? Thanks