scuz 10
02-02-2010, 10:34 PM
I am trying to read the 391 gp below the picture of the item on the top left side of the ge interface.
http://img109.imageshack.us/img109/9338/srltext.png
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_a llChars))));
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?
http://img109.imageshack.us/img109/9338/srltext.png
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_a llChars))));
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?