Sign in to follow this  
Followers 0
Diception

pointer read memory

2 posts in this topic

ive tried this

CODE
#include "NomadMemory.au3"

hotkeyset("{end}", "err")

$pw = _memoryopen(WinGetProcess("elementclient.exe"))

$pwi = $pw

sleep(500)

$lvl1Pointer= _MemoryRead(0x034119c8, $pwi, 'dword')

sleep(500)

$Chp= _MemoryRead(($lvl1Pointer + 0x464), $pwi, 'dword')

sleep(500)

$Mhp= _MemoryRead(($lvl1Pointer + 0x494), $pwi, 'dword')

sleep(500)

While 1

$health= $Chp

$mhealth= $Mhp

$Chp= _MemoryRead(($lvl1Pointer + 0x464), $pwi, 'dword')

$Mhp= _MemoryRead(($lvl1Pointer + 0x494), $pwi, 'dword')

if not WinActive("Element Client") Then

ToolTip("Current HP: "&$health&"/"&$mhealth&".")

Sleep(10)

if $health < $mhealth Then

WinActivate("World of Warcraft")

EndIf

Else

sleep(10)

EndIf

WEnd

func err()

Exit

endfunc

and this

CODE
#include "NomadMemory.au3"

$PID=WinGetHandle("Element Client")

if $PID = 0 Then

MsgBox(0,"dumbass!","process does not exist")

EndIf

$address = 0x034119c8

Dim $HPOFF[2]

$HPOFF [0] = 0

$HPOFF [1] = 4388

Dim $MPOFF[2]

$MPOFF[0] = 0

$MPOFF[1] = 0x468

$Handle = _MemoryOpen($PID)

$CurrentHP = _MemoryPointerRead($Address, $Handle, $HPOFF)

$CurrentMP = _MemoryPointerRead($Address, $Handle, $MPOFF)

_MemoryClose($Handle)

MsgBox(4096, "returned", "Current hp= " & $CurrentHP & "Currrent MP =" & $CurrentMP)

when i test with the actual address and not the pointer i get what i need how do i fix?

if some one can point me in the right direction

Share this post


Link to post
Share on other sites



I hate to bump my own post but can someone give me a hand?

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  
Followers 0