Cape-City 0 Posted January 23, 2005 Share Posted January 23, 2005 (edited) Hi, i tried something out : $File = FileOpen("C:\Test.dat",2) FileWrite ($File, Chr(Dec("FF"))) FileWrite ($File, Chr(Dec("FE"))) FileWrite ($File, Chr(Dec("61"))) FileWrite ($File, Chr(Dec("00"))) FileWrite ($File, Chr(Dec("63"))) FileWrite ($File, Chr(Dec("00"))) FileWrite ($File, Chr(Dec("3D"))) FileWrite ($File, Chr(Dec("00"))) FileClose ($File) So far everything works fine, but AutoIt ignores the "00" Character. Someone an Idea ? Thanx in advance Cape-City Edited January 23, 2005 by Cape-City Link to post Share on other sites
ezzetabi 4 Posted January 23, 2005 Share Posted January 23, 2005 Autoit does not manage the character 00 in any string. Link to post Share on other sites
Cape-City 0 Posted January 23, 2005 Author Share Posted January 23, 2005 Does a workaround exists ? Link to post Share on other sites
ezzetabi 4 Posted January 23, 2005 Share Posted January 23, 2005 The only one I know. But it just replace an other character to 00, so you lose the chance of using an other char. It can be a problem. Link to post Share on other sites
Lazycat 15 Posted January 23, 2005 Share Posted January 23, 2005 You can take a look into my http://www.autoitscript.com/fileman/users/public/Lazycat/hex2bin.zip that converts file with hex values into binary. This is a lame solution, but this is better than nothing... Koda homepage ([s]Outdated Koda homepage[/s]) (Bug Tracker)My Autoit script page ([s]Outdated mirror[/s]) Link to post Share on other sites
Cape-City 0 Posted January 23, 2005 Author Share Posted January 23, 2005 (edited) That looks good ... thanx for that ... Edited January 23, 2005 by Cape-City Link to post Share on other sites
Lazycat 15 Posted January 23, 2005 Share Posted January 23, 2005 Inspired by this topic I'm finished dll for reading/writing binary files. So you can look this topic. Koda homepage ([s]Outdated Koda homepage[/s]) (Bug Tracker)My Autoit script page ([s]Outdated mirror[/s]) Link to post Share on other sites
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