AmourSpirit icon

Alternative AutoHotkey convert int to hex

AmourSpirit | PRO | 03/19/17 12:04:56 AM UTC | 0 ⭐ | 10660 👁️ | Never ⏰ | []
Autohotkey |

410 B

|

None

|

0 👍

/

0 👎

; AutoHotkey alternatives to convert int to hex
; uses also Mini-Frameowrk https://github.com/Amourspirit/Mini-Framework
hex := Array( "0", "1", "2", "3", "4", "5", "6", "7", "8", "9" ,"A", "B", "C", "D", "E", "F" )
 
NumUint := 12368795487
num := NumUint
str := ""
while num > 0
{
    str .= Hex[(num & 0xF) + 1]
    num >>= 4
}
str := MfString.Reverse(str)
strH := format("{:X}", NumUint)
MsgBox % str . "`n" . strH

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎