Sign in to follow this  
Followers 0
BPM

Displaying a hex value in hex?

4 posts in this topic

I have a problem, whenever I set a variable to a number in hex (for example, 0x01234567), and when I put that var into a msgbox, it displays it as a decimal number!

How can I get it to desplay exactly as the hex number is written? (I want the message box to show "0x01234567", not the decimal number)

This code, will show hex number "0x01234567" as 19088743. What must I do to make it show it as hex?

$Hex = 0x01234567

MsgBox(0, "test", $Hex)

Share this post


Link to post
Share on other sites



Check the AutoIt Help file for "Hex"

Hopefully that should help you.


Share this post


Link to post
Share on other sites

Thanks that was just what I needed!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0