SRL Archive - Help

HELP-function(GetTextAtEx)


romy

2012-05-30 08:48:36

Can any one explain to me in detail how to use the function GetTextAtEx
for simba, this doesn't explain anything http://docs.villavu.com/simba/scriptref/ocr.html#rs-getuptextat
If any 1 know how to use plz post…
:confused:

Le Jingle

2012-05-30 09:05:52

You can try using the search bar too(specifically), if your don't understand somthing off the doc's (even though it IS on the doc's, here ;) ); it (the search bar) tends to turn up many useful topics that can help ( such as or this, just to name a couple )

I think that
GetTextAtEx(const xs,ys,xe,ye, minvspacing, maxvspacing, hspacing,color, tol: integer;const font: string): string;
means, we're getting our text within a box xs, ys, xe, ye, and our minimum vertical spacing (usually 0), and our maximum vertical spacing (20 should suffice), and our height spacing (0), our text's color (some drawn out integer, such as/example 16777215), and the color's tolerance (try 15, 20, or if the text color never changes, 0), all in which returns us a string / our text. Hope this helps

romy

2012-05-30 09:12:30

thanx for the reply but the docs don't explain how to use,
and the search results give no help

Le Jingle

2012-05-30 09:32:42

Well I pretty much explained everything you need to enter for the function, what are you not understanding?

romy

2012-05-30 09:34:11

could you post a example of it finding text in the chat box in rs

Le Jingle

2012-05-30 09:46:53

From: romy
could you post a example of it finding text in the chat box in rs



Program New;
{$DEFINE SRL5}
{$i SRL/srl.simba}

Begin
SetupSRL;
//Writes white coloured SmallChars font, in the chatbox:
WriteLn(GetTextAtExWrap(MCX1, MCY1, MCX2, MCY2, 0, 20, 0, 16777215, 15, 'SmallChars'));
End.

romy

2012-05-30 10:31:05

thanx i found another way