Simba Code:
{$I SRL/SRL.Simba}
Function GetPriceBox(Box: TBox): Integer;
var
Text: String;
begin
Text:= GetTextAtExWrap(Box.X1, Box.Y1, Box.X2, Box.Y2, 0, 5, 2, 39372, 55, 'StatChars');
Result:= StrToIntDef(ExtractFromStr(Text, Numbers), 0);
end;
var
ItemPrice, TotalPrice: TBox;
begin
SetupSRL;
ItemPrice:= IntToBox(538, 267, 602, 278); //From the pictures you posted.. Obviously you need to change these values.
TotalPrice:= IntToBox(671, 417, 736, 429); //Same as above..
writeln(GetPriceBox(ItemPrice));
writeln(GetPriceBox(TotalPrice));
TypeSendEx(ToStr(GetPriceBox(ItemPrice), False);
end.