OdinHub Posted October 5, 2018 Share Posted October 5, 2018 Hallo, how can I insert a hex value at the beginning of the data? My problem is that the existing code will be overwritten.He should be preserved. #include <FileConstants.au3> $hFile = FileOpen("test.bin", BitOR(16, 1)) FileSetPos($hFile, 0, $FILE_BEGIN) FileWrite($hFile, Binary(547)) ;should write 4 bytes FileClose($hFile) Link to comment Share on other sites More sharing options...
jdelaney Posted October 5, 2018 Share Posted October 5, 2018 (edited) Fileread to a variable...concat that after the hex key with an &...you can also look into filewriteline and filereadline Edited October 5, 2018 by jdelaney IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window. Link to comment Share on other sites More sharing options...
OdinHub Posted October 5, 2018 Author Share Posted October 5, 2018 @jdelaney Can you show me that by example? Thanks for the answer! Link to comment Share on other sites More sharing options...
jdelaney Posted October 5, 2018 Share Posted October 5, 2018 Consolewrite ("test" & "test2") IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window. Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted October 5, 2018 Moderators Share Posted October 5, 2018 @OdinHub in the future please just hit Reply, rather than reporting the thread to the Moderation team... "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
OdinHub Posted October 5, 2018 Author Share Posted October 5, 2018 @JLogan3o13 Sorry, was not on purpose! You know the saying: don't drink and drive... it meant to me: don't post and watch TV. jdelaney - it works! 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