BPM Posted April 19, 2008 Share Posted April 19, 2008 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) Link to comment Share on other sites More sharing options...
Dampe Posted April 19, 2008 Share Posted April 19, 2008 Check the AutoIt Help file for "Hex" Hopefully that should help you. Link to comment Share on other sites More sharing options...
BrettF Posted April 19, 2008 Share Posted April 19, 2008 $hex = 0x01234567 MsgBox (0, "", "0x" & Hex ($hex)) Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
BPM Posted April 20, 2008 Author Share Posted April 20, 2008 Thanks that was just what I needed! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now