Nufineek
2014-01-31 16:51:22
Hey guys, I have a simple question. What function would you use to recognise a number from Tbox on my rs3 screen and return it as a result into my script?
2014-01-31 16:51:22
2014-01-31 17:02:01
2014-01-31 17:25:56
From: Ashaman88
tesseract or fonts… but show a picture please
2014-01-31 22:24:28
From: Nufineek
I'd need it to recognise this collon at GE screen
[ATTACH=CONFIG]22834[/ATTACH]
function GEPrice(Bounds: TBox): String;
begin
result := tesseractGetText(Bounds.x1,Bounds.y1,Bounds.x2,Bounds.y2,5,5,false,0,'')
end;
function GEPrice(Bounds: TBox): Integer;
var
Text: String;
begin
Text := tesseractGetText(Bounds.x1,Bounds.y1,Bounds.x2,Bounds.y2,5,5,false,0,'');
result := StrToIntDef(ExtractFromStr(Text, Numbers), 0);
end;