Memory Address

12/07/2010 10:43 SaM.ThE.MaN#1
Hi,

Long time ago , i found a tut on epvp.

What i want to do is : $Hp = 0x53hdf5 <-- My character Hp address ,

I want to show it on Input1 ....
12/07/2010 12:15 lolkop#2
open the process with all access flag, read that adress, close the handle of the opened process, and the memory read stuff is done...

could be realized like this (guess the hp is stored as integer/dword):
Code:
Func memread($pid, $adress)
	Local $kernel32 = DllOpen('kernel32.dll'), $process = DllCall($kernel32, 'int', 'OpenProcess', 'int', 0x1F0FFF, 'int', 1, 'int', $pid), $struct = DllStructCreate('dword')
	DllCall($kernel32, 'int', 'ReadProcessMemory', 'int', $process[0], 'int', $adress, 'ptr', DllStructGetPtr($struct), 'int', DllStructGetSize($struct), 'int', '')
	DllCall($kernel32, 'int', 'CloseHandle', 'int', $process[0])
	DllClose($kernel32)
	Return DllStructGetData($struct, 1)
EndFunc
when u've got the value, you can simply use GuiCtrlSetData or ControlSetText to save it in an input/label...