Sign in to follow this  
Followers 0
pinkfoyd

How read a hexadecimal file

3 posts in this topic

#1 ·  Posted (edited)

Hi all,

I do some search but find nothing...

Today I need a script witch read file in HEXA mode. I used before the "binary.dll" 'plugins" which be used like this :

$resr = DllCall(@ScriptDir & "\binary.dll", "int", "FileReadBinary", "str", "binary.", "int", 100, "int", 200, "str", "")
MsgBox (0, "Return code = " & $resr[0], "Readed 200 bytes at offset 100:" & @CR & @CR & $resr[4])

But this example script doesn't work anymore, do you have a solution ?

in fact i need to read a file at a specific hexa adress

thk for help ! and sorry if my english is not pretty good

Edited by pinkfoyd

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

In latest AutoIt there are native functions for binary reading/conversions.

Look into helpfile at FileOpen(), FileRead() and binary modes

and also at BinaryToString(), StringToBinary()

Edited by Zedna

Share this post


Link to post
Share on other sites

yes i know this, but we can't go directly to a know offset... and we can't read the hexa string directly ( or i am very stupid ^^ )

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  
Followers 0