Dumpin
2008-01-15 14:14:07
program New;
{.include srl/srl.scar}
var
xx, yy, Coord1, Coord2, Bs : integer;
HP : string;
HPnumber : Tstringarray;
Function GetHPMS(Typeit: boolean): boolean;
begin
For Bs := 0 To (GetArrayLength(HPnumber)-1) Do
begin
if IsTextInAreaEx(727, 29, 739, 38, xx, yy, HpNumber[Bs], 12, statchars, False, False, 0, 1, 65280)then
begin
Coord1 := xx;
Coord2 := yy;
Hp:= GetTextAtEx(Coord1, Coord2, 0, statchars, False, False, 0, 1, 65280, 10, false, tr_AlphaNumericChars);
end;
end;
end;
begin
SetupSRL;
ClearDebug;
Wait(3000);
GetHPMS(true);
writeln(HP);
end.it doesn't work for some reason.. when i run it it just writes an emty line in the debug… does anyone know why it can't find the text?
ooh and it looks for the HP percent on the mainscreen