Jump to content
Sign in to follow this  
Leopardfist

Can Autoit retrieve memory values from other processes?

Recommended Posts

Leopardfist

If I know a memory address of a value from a separate process (Game), and I want to write a script that can read this value, and maybe change it, how can I do this?

For Example:

I use Cheat Engine to find the memory address for a game that measures health, let's say it is 001A03

What I want to do in this instance is simply read that value from my autoit script, to maintain a measure of my health in game. I will not write to this location, but I will want to write to others if possible, so if you can leave those instructions as well please do.

Thanks for any assistance you can grant :).

Share this post


Link to post
Share on other sites
igotandrew

Nomadmemory.au3

I believe.

Share this post


Link to post
Share on other sites
Fend

#include <NomadMemory.au3>

$ID=_MemoryOpen(ProcessExists("yourgame.exe"))

$Address=0x1F35CFB8;;the address your are looking to read

$Res = _MemoryRead($Address,$ID)

MsgBox(0,"My value",$Res)

_MemoryClose($ID)


I like cookies?

Share this post


Link to post
Share on other sites
Leopardfist

Where do I get nomadmemory.au3 from? I do not see anything about it in my help file, and I searched my harddrive for it and cannot find it. Do I need to download it?

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  

×