Jump to content
Sign in to follow this  
mertdnz

How can I read side by side under the other

Recommended Posts

SadBunny

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.

Share this post


Link to post
Share on other sites
SadBunny

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.

Share this post


Link to post
Share on other sites
mertdnz

How can I convert hex to string?

Share this post


Link to post
Share on other sites
DarkwarlorD

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)

 

Share this post


Link to post
Share on other sites
mertdnz

#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?

RkGsytm.jpg

 

Share this post


Link to post
Share on other sites
czardas

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

Share this post


Link to post
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
Sign in to follow this  

×