Jump to content

Can Autoit retrieve memory values from other processes?


Recommended Posts

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 :).

Link to comment
Share on other sites

#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?

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...