If you search for the function on Google like this you often get some useful code:
https://www.google.nl/search?q=site%...ient=firefox-a
Simba Code:
function GetMidPrice: Integer;
var
Text: String;
begin
Text:= GetTextAtExWrap(296, 186, 440, 199, 0, 10, 1, 6400255, 5, 'UpCharsEx');
writeln(Text); //easier than calling the func again..
Result:= StrToIntDef(GetNumbers(Text), -1);
end;
I used this in my Gop script:
Simba Code:
procedure GetWaitTime;
var
i: Integer;
Bound: TBox;
Pts: TPointArray;
WaitTimeString: String;
NumbersCheck: Array of String;
begin
ColorToleranceSpeed(1);
FindColorsTolerance(Pts, 0, 140, 380, 500, 450, 0);
Bound := GetTPABounds(Pts);
//SMART_DrawBox(Bound);
WaitTimeString := GetTextAtExWrap(Bound.x1 - 5, Bound.y1 - 5, Bound.x2 + 5, Bound.y2 + 5, 0, 0, 2, 0, 0, UpChars);
WriteLn(WaitTimeString);
NumbersCheck := ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'];
for i:=0 to 9 do
begin
if Pos(NumbersCheck[i], WaitTimeString) > 0 then
begin
WaitTime := StrToInt(GetNumbers(WaitTimeString));
SMART_DrawDotsEx(False, ActionBoxTPA, RGBtoColor(194, 178, 146));
SMART_DrawText(290, 429, UpChars, 'kicked, waiting '+IntToStr(WaitTime)+' minutes', clWhite);
Exit;
end;
end;
end;
I believe minvspacing is the minimum vertical spacing = 0
max vertical spacing = 0 aswell becaues you are reading one line.
Hspacing = horizontal spacing = 2 because it sometimes messes up when you use 1 I believe. Hope it helps.