Jump to content
Sign in to follow this  
deja

Memory reading and pointers

Recommended Posts

deja

Hello mates :D Im new in autoit and then i need som help, i trying to get a value from the memory with pointers, here is the code.

#include <NomadMemory.au3>
 $baseaddr = 0x006a9ec0
 $baseoffset = 768
 $secoffset = 5560

 $pID = WinGetProcess("Plants vs. Zombies","")
 $reading = _MemoryOpen($pID)  

 $addr = _MemoryRead($baseaddr,$reading) + $baseoffset 
 Msgbox(0,"","Addr: " & $addr) 

 $addr2 = _MemoryRead($addr,$reading) + $secoffset 

 Msgbox(0,"","Addr: " & $addr2) msgbox(0,"","Suns: " & _MemoryRead($addr2,$reading))

And here come the pointers.

Posted Image

Thanks for fast answeres :D

Edited by deja

Share this post


Link to post
Share on other sites
deja

Problem solved, needed to add 0x before the offsets :D

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×