Jump to content
Sign in to follow this  
BPM

Displaying a hex value in hex?

Recommended Posts

BPM

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
Dampe

Check the AutoIt Help file for "Hex"

Hopefully that should help you.


Share this post


Link to post
Share on other sites
BrettF

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.