spudw2k 231 Posted November 26, 2020 I could use some suggestions here and/or best practices. I have a binary file format I am crafting and working with. The general structure of the binary format is: [HEADER] [FIELD1MARKER] [DATA] [FIELD2MARKER] [DATA] [FIELD1MARKER] [DATA] [FIELD2MARKER] [DATA]..... I just want some ideas how to handle processing the file. My hope is to inspect the data from header to EOF, but I am hoping for a more elegant method than using BinaryMid and keeping track of the position. Thoughts and suggestions welcome. I can throw together pseudo data / code if necessary, but just hoping for some fundamentals. Spoiler Things I've Made: AOT Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Share this post Link to post Share on other sites
JockoDundee 158 Posted November 26, 2020 4 hours ago, spudw2k said: but I am hoping for a more elegant method than using BinaryMid and keeping track of the position. This discussion may be of use, but it’s not, IMHO, a certainty. https://www.autoitscript.com/forum/topic/188564-use-regexp-on-binary-data/#comments Code hard, but don’t hard code... Share this post Link to post Share on other sites