I've tried Hex(), obviously... But it gives me wacko stuff. 0101 1010 should output 5A. But it doesn't. 101 should go to 5, yet it goes to 65... Huh? Any help?
$BinIn = "01011010"
$Bits = StringSplit($BinIn,"")
$Dec = 0
For $x = $Bits[0] To 1 Step -1
$dec += (2^($Bits[0]-$x)) * $Bits[$x]
Next
$hex = Hex($dec)
ConsoleWrite("bin:" & $BinIn & " Dec:" & $dec & " Hex:" & $Hex & @CRLF)