Help with AutoIt

04/06/2007 04:45 batmanbatman#1
Im trying to make my own pet lvler just to learn a lil bit more about AutoIt and stuff, however im having problems with _MemRead couse I dont really know what value is it returning, or the format, so I thought some of you guys could gimme a hand on it :D

PD1: I obtained the Stamina Address using cheat Engine,
PD2: any Idea about how to choose 1 between a lot of processes called Conquer.exe? :P I wont say how many :rolleyes:

$Process = "Conquer.exe"
$Pid = ProcessExists($Process)
$h_open = _MemOpen($pid)

While 1

$STAMINA= _MemRead($h_open, 0x00512C08,4)

if $STAMINA=100 Then
MsgBox(0,"Stamina",$STAMINA)
EndIf
MouseClick("right",512,400,1,0)
send("{F3}")
sleep(4000)
wend

_MemClose($h_open)

Exit