SRL Archive - Help

GetTextAtEx Help!


scuz 10

2010-02-02 17:34:28

I am trying to read the 391 gp below the picture of the item on the top left side of the ge interface.


It appears to be StatChars, and I am using the following code:
program New;
{.include SRL\SRL.scar}

procedure ReadPrice;
var
x,y: Integer;
begin
FindColor(x, y, 39321,118,138,150,150);//finds the ge font color
writeln(strtoint(trim(GetTextAtEx(x,y-2,50,StatChars,false,false,1,5,39321,80,false,tr_allChars))));
end;

begin
ActivateClient;
SetupSRL;
ReadPrice;
end.

However, no matter what I change, i get the following output:
Successfully compiled (1767 ms)
SRL Compiled in 0 msec
-1
Successfully executed

What does this -1 mean? Is the font something other than statchars?

Dynamite

2010-02-02 17:52:37

You have StrToInt.
You want IntToStr

scuz 10

2010-02-02 17:55:59

From: The Man
You have StrToInt.
You want IntToStr


I noticed that right after i posted lol, thanks :)

Dynamite

2010-02-02 17:56:33

No worries :)