Hi you all,
I have a slight problem searching for text. I load the font via LoadCharsFromFont2, but can't seem to find the specified text at all. I use MS Word and type the selected text in the font specified in the SCAR script and change the font size to the specified size as well, but still no joy.
If there is any help or suggestions, it will be appreciated.
Here is the script I'm using.
SCAR Code:
program FindTextExample2;
{.include SRL/SRL.scar}
var
x,y, //integers for coords
c :Integer; //define font integer
begin
SetupSRL; //Always first to setup SRL
ActivateClient; //Make sure client is active
c := LoadCharsFromFont2('Book Antiqua', 13, False, False, False, False); //Load the font
if FindTextTpaEx(0, 50, 7, 20, 300, 60, x, y, 'found', c, move) then //Check to see if text is found
WriteLn('Text Found! :)')
else
WriteLn('Text not found :(');
FreeChars2(c); //Free the mem used to load the font
end.