Jump to content

How can I read side by side under the other


Recommended Posts

Try to use the function _HexToString($sHex) in the String.au3

I 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

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 by czardas
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...