Jump to content

Recommended Posts

Posted

It isn't seeming to properly read the value of the offset that I give it, it is always returning 0.

I can tell this because while looking in Cheat Engine at the address, it shows the value properly as it is displayed in the process I am trying to scan.

However, when I check for @Error it comes out as 0 showing that no error is occuring.

Is there anything Vista could be screwing this up about, and any possible fixes or advice?

Posted
Posted

#include <NomadMemory.au3>
$hWnd = "winmine"
$PID = WinGetProcess($hWnd, "")

$Memory = _MemoryOpen($PID, default)

$ReadMemory = _MemoryRead(0x02a3d22c, $Memory)

MsgBox(0, @Error, $ReadMemory)

When the MsgBox pops up, it shows @error as 0 and $ReadMemory as 0 even though Cheat Engine is showing the address 0x02a3d22c as the value displayed for the time.

  • 3 weeks later...
Posted

Now this may be a useless workaround for you, and this being my first post kinda sheds some light on my experience. But I have been having no probs with it and I am running vista. Based off of the code that you are using I notices that you are not using the _MemoryGetBaseAddress UDF written by Szhlopp.

I do not know a whole lot about memory, but I believe that Cheat Engine gives you the offset from the process that it is attached to, and not the physical address. What _MemoryGetBaseAddress does is find the location of the process in memory and then you use the offset learned from CE along with the address you get from Szhlopp's function with _MemoryRead from NomadMemory.

Szhlopp's function can be found here: Memory UDF, For finding that EXE's address! "Game.exe+753EC"

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
  • Recently Browsing   0 members

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