Jump to content

Recommended Posts

Posted

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.

Posted

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.

Posted

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)

 

Posted (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 by czardas

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
×
×
  • Create New...