pinkfoyd Posted October 4, 2007 Share Posted October 4, 2007 (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 October 4, 2007 by pinkfoyd Link to comment Share on other sites More sharing options...
Zedna Posted October 4, 2007 Share Posted October 4, 2007 (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 October 4, 2007 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
pinkfoyd Posted October 4, 2007 Author Share Posted October 4, 2007 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 ^^ ) 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