Advertisement
AmourSpirit

Alternative AutoHotkey convert int to hex

Mar 18th, 2017
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; AutoHotkey alternatives to convert int to hex
  2. ; uses also Mini-Frameowrk https://github.com/Amourspirit/Mini-Framework
  3. hex := Array( "0", "1", "2", "3", "4", "5", "6", "7", "8", "9" ,"A", "B", "C", "D", "E", "F" )
  4.  
  5. NumUint := 12368795487
  6. num := NumUint
  7. str := ""
  8. while num > 0
  9. {
  10.     str .= Hex[(num & 0xF) + 1]
  11.     num >>= 4
  12. }
  13. str := MfString.Reverse(str)
  14. strH := format("{:X}", NumUint)
  15. MsgBox % str . "`n" . strH
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement