View Full Version : HELP-function(GetTextAtEx)
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
05-30-2012, 01:05 PM
You can try using the search bar too(specifically (http://villavu.com/forum/search.php?searchid=2094708)), if your don't understand somthing off the doc's (even though it IS on the doc's, here (http://docs.villavu.com/simba/scriptref/ocr.html?highlight=gettextatex#gettextatex) ;) ); it (the search bar) tends to turn up many useful topics that can help ( such as (http://villavu.com/forum/showthread.php?t=70721&highlight=gettextatex) or this (http://villavu.com/forum/showthread.php?t=81262&highlight=gettextatex), 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
thanx for the reply but the docs don't explain how to use,
and the search results give no help
Le Jingle
05-30-2012, 01:32 PM
Well I pretty much explained everything you need to enter for the function, what are you not understanding?
could you post a example of it finding text in the chat box in rs
Le Jingle
05-30-2012, 01:46 PM
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.
thanx i found another way
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.