darkmaster071 Posted February 2, 2010 Share Posted February 2, 2010 (edited) I am trying to read a multi level pointer from an .exe and it seems i have done everything right, but the value doesnt get read or it gets read wrong. First i tryed doing everything myself, but this code is from a script on this forum that automaticly makes a pointer read script from a cheatengine copy clipboard. So this should work, but it still doesnt read the value. Can anyone please help me. Thanks. #include <NomadMemory.au3> $pid=ProcessExists("<program>.exe") $value=_Read($pid) MsgBox(0,0,$value) Func _Read($pid) Global $Offset[4] $Offset[0] = 0 $Offset[1] = Dec("105C") $Offset[2] = Dec("0070") $Offset[3] = Dec("000C") $StaticOffset = Dec("4C3E88") $openmem = _MemoryOpen($pid) $baseADDR = _MemoryGetBaseAddress($openmem, 1) $finalADDR = "0x" & Hex($baseADDR + $StaticOffset) $MemPointer = _MemoryPointerRead($finalADDR, $openmem, $Offset) _MemoryClose($openmem) Return $MemPointer EndFunc Edited February 2, 2010 by darkmaster071 Link to comment Share on other sites More sharing options...
GodlessSinner Posted February 2, 2010 Share Posted February 2, 2010 (edited) Where is <NomadMemory.au3> ? I haven't this include-file, and can't test your code.. Edited February 2, 2010 by Godless _____________________________________________________________________________ Link to comment Share on other sites More sharing options...
darkjohn20 Posted February 3, 2010 Share Posted February 3, 2010 (edited) Not sure about read but here is some write. Check this to see if it looks similar. Also make sure you are using the array correctly. Reading returns an array of value and address. If you are familiar with the Tutorial.exe try using this and change write to read with a message box or something. If this must be removed feel free to remove it. I personally see no problem with it, but I know others do.NomadMemory.au3GetAddressFromCheatEngineTable.au3Trainer.au3 Edited February 3, 2010 by darkjohn20 Link to comment Share on other sites More sharing options...
darkmaster071 Posted February 3, 2010 Author Share Posted February 3, 2010 Thanks i totaly forgot it returns an array Works now. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now