Posted: Fri Nov 14, 2014 11:39 pm Post subject: How can I copy a section of memory to a file?
So I've created an AA script to copy some memory into a section that I've alloc'd. How can I now copy that memory out to a file? Do I need to use the lua engine?
i guess it depends on how you want it copied out. You could code up a lua script to save it to file, you could just open up the section you copied it to if you make a symbol to point to it and just manually copy and paste it into a text file, or you could paste it into a hex editor and save it raw like that if you dont want to use a text program.
It'd certainly need to be automated, as the section I want to copy is several MB. How would I go about using a lua script? I know how to write to a file, etc. in lua, but how do I read the memory? _________________
There are probably some with a better answer than me but here's what i know.
The best way i can think of is if your ASM is pointing to the correct location and has a symbol for it, then should be able to use the writeRegionToFile command. The way it is setup, it should do exactly what you are looking for. You could probably set it up via hotkey or something. I'm not sure how often it needs to be done or if timing is key or not.
Code:
writeRegionToFile(filename, sourceaddress,size) : Writes the given region to a file. Returns the number of bytes written
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum