mertdnz Posted May 21, 2015 Share Posted May 21, 2015 hex convert string.au3 Link to comment Share on other sites More sharing options...
SadBunny Posted May 21, 2015 Share Posted May 21, 2015 Welcome to the AU3 forums, I guess... But could you be a smidgen more specific? What do you mean by that question? Roses are FF0000, violets are 0000FF... All my base are belong to you. Link to comment Share on other sites More sharing options...
mertdnz Posted May 21, 2015 Author Share Posted May 21, 2015 (edited) reading problems since the lower bottom line and sidehttp://i.imgur.com/E6CipLw.jpg Edited May 21, 2015 by mertdnz Link to comment Share on other sites More sharing options...
SadBunny Posted May 21, 2015 Share Posted May 21, 2015 Still not very clear... Please explain what it is that you don't understand or that you can't get your program to do. Roses are FF0000, violets are 0000FF... All my base are belong to you. Link to comment Share on other sites More sharing options...
mertdnz Posted May 22, 2015 Author Share Posted May 22, 2015 How can I convert hex to string? Link to comment Share on other sites More sharing options...
DarkwarlorD Posted May 22, 2015 Share Posted May 22, 2015 Try to use the function _HexToString($sHex) in the String.au3I copied that from AutoIt Help#include <MsgBoxConstants.au3> #include <String.au3> Local $sString = "This is a sample string" Local $sHex = _StringToHex($sString) ; Convert the string to a hex string. MsgBox($MB_SYSTEMMODAL, "", "Original String: " & $sString & @CRLF & " Hex: " & $sHex) $sString = _HexToString($sHex) ; Convert the hex string back to the original string. MsgBox($MB_SYSTEMMODAL, "", "Original Hex: " & $sHex & @CRLF & "String: " & $sString) Link to comment Share on other sites More sharing options...
mertdnz Posted May 22, 2015 Author Share Posted May 22, 2015 #include <MsgBoxConstants.au3> #include <String.au3> Local $sHex = "0x686920677579730x686F772061726520796F75" $sString = _HexToString($sHex) MsgBox(0, "","String: " & $sString)OK, but how I'm going to read next hex? Link to comment Share on other sites More sharing options...
czardas Posted May 22, 2015 Share Posted May 22, 2015 (edited) Your hex value is incorrect. After removing two instances of 0x and inserting a break, it makes sense.#include <String.au3> Local $sHex = "68692067757973" & "0A" & "686F772061726520796F75" $sString = _HexToString($sHex) MsgBox(0, "","String: " & $sString) Edited May 22, 2015 by czardas operator64 ArrayWorkshop 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