Jump to content

MemoryRead again :)


Recommended Posts

Hello! I finaly found the Base Pointer, i was looking for in my last threads, but now i dont know exactly, how i can make my script go tought alle these pointers, to the value i need. :\

So what i need to know exactly is, how can i make AutoIT get the next pointer, using the current pointer + offset? :\

First of all, here is a screenshot of the pointers:

Posted Image

The Script should walk the same way, as it is shown in the screenshot, using this code:

#include <winapi.au3>

Global Const $PROCESS_VM_OPERATION = (0x0008)
Global Const $PROCESS_VM_READ = (0x0010)

Global $Process="game.exe"
Global $Pointer = 0x0089af60; replace of course

$handle=_WinAPI_OpenProcess(BitOR($PROCESS_VM_OPERATION,$PROCESS_VM_READ),False,ProcessExists($Process))

$s=DllStructCreate("int")
Local $read
_WinAPI_ReadProcessMemory($handle,$Pointer,DllStructGetPtr($s),DllStructGetSize($s),$read)

   $MobHP = DllStructGetData($s,1)
   
   MsgBox(0, "MobHP", $MobHP)
   
_WinAPI_CloseHandle($handle)

Sorry for asking again, but i'm sitting here for about 2 days and it makes crazy. :)

Edited by Tinutron
Link to comment
Share on other sites

thats what i tried first, but the script only throws out bullshit. i have to use the offset in anyway, but i dont know how. unfortunatly i dont know much about this pointerstuff... :\

Edited by Tinutron
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...