2010-01-28 18:34:03 -05:00
|
|
|
function rs_GetUpText: String; extdecl;
|
2010-01-25 08:59:44 -05:00
|
|
|
begin
|
|
|
|
Result := CurrThread.Client.MOCR.GetUpTextAtEx(7, 7, true);
|
|
|
|
end;
|
|
|
|
|
2010-01-28 18:34:03 -05:00
|
|
|
function rs_GetUpTextAt(x, y : integer): string; extdecl;
|
|
|
|
begin
|
|
|
|
result := CurrThread.Client.MOCR.GetUpTextAtEx(x,y,true);
|
|
|
|
end;
|
|
|
|
|
|
|
|
function BitmapFromText(text, font: String): integer; extdecl;
|
2010-01-25 08:59:44 -05:00
|
|
|
var
|
|
|
|
bmp: TMufasaBitmap;
|
|
|
|
begin
|
|
|
|
writeln('BitmapFromText: ' + text + ' ' + font);
|
|
|
|
bmp := CurrThread.Client.MOCR.TextToFontBitmap(text, font);
|
|
|
|
Result := CurrThread.Client.MBitmaps.AddBMP(bmp);
|
|
|
|
end;
|
|
|
|
|
2010-01-28 18:34:03 -05:00
|
|
|
function MaskFromText(text, font: String): TMask; extdecl;
|
2010-01-25 08:59:44 -05:00
|
|
|
begin
|
|
|
|
Result := CurrThread.Client.MOCR.TextToMask(text,font);
|
|
|
|
end;
|
|
|
|
|
2010-02-05 21:21:27 -05:00
|
|
|
procedure TPAFromTextWrap(text, font: String;out w,h : integer;out TPA : TPointArray); extdecl;
|
|
|
|
begin
|
|
|
|
TPA := CurrThread.Client.MOCR.TextToFontTPA(text, font, w, h);
|
|
|
|
end;
|
|
|
|
|
2010-01-28 18:34:03 -05:00
|
|
|
function TPAFromText(text, font: String;out w,h : integer): TPointArray; extdecl;
|
2010-01-25 08:59:44 -05:00
|
|
|
begin
|
|
|
|
Result := CurrThread.Client.MOCR.TextToFontTPA(text, font, w, h);
|
|
|
|
end;
|
2010-01-31 07:29:33 -05:00
|
|
|
|
|
|
|
function GetTextAt(atX, atY, minvspacing, maxvspacing, hspacing,
|
|
|
|
color, tol, len: integer; font: string): string; extdecl;
|
|
|
|
begin
|
|
|
|
result := CurrThread.Client.MOCR.GetTextAt(atx,aty,minvspacing,maxvspacing,hspacing,color,tol,len,font);
|
|
|
|
end;
|