Can Scar/Srl read the text in websites or applications other than Runescape and can it tell if it is bold, italicized or colored?
Sorry I am new to scripting and I do not know all of Scars abilities.
Thanks for any help!
Can Scar/Srl read the text in websites or applications other than Runescape and can it tell if it is bold, italicized or colored?
Sorry I am new to scripting and I do not know all of Scars abilities.
Thanks for any help!
It probably can, although I'm not sure.
Check the manual by pressing F1 when SCAR is open (not the srl manual)
-Pancakes.
You can probably make your own text, takes pics of every letter, and scar and recognize it all.
I dont know much about this though so wait until someone more experaince in this comes around, it is possible though.
BTW: What you want to read text for?
Hey thats a good question, if you find a proper answer i would want to know.
But i think it can read text if you script it right.
Yes, it can.
LoadCharsFromFont or something is the function to load the appropriate font, and then you can us GetTextAtEx to read the text.
I made a new script, check it out!.
OK I think I found it
function LoadCharsFromFont2(fontname: string; fontsize: Integer; fontbold, fontitalic, fontunderline, fontstrike: Boolean): Integer;
Load characters from Windows font in memory.
Example:
c := LoadCharsFromFont2('Courier New', 10, False, False, False, False);
Now to learn how to use it!

haha, im pretty qualified to answer this question. I created the NPCChars font and a bunch of text functions in SRL
I will tell you that finding text is a lot easier than reading text, because you need to know its exact coords to read it
scar wont be able to tell you if the font is bold or italicized because you need to enter that when you load the font
its pretty likely that you will be able to use LoadCharsFromFont2 for whatever youre doing, you just need to enter the parameters right
heres an example
end.Code:program RunDesktopProgram;//masquerader //Drag crosshair to desktop and set up constants to use var CharsDesktop,x,y,Width,Height,Mask:integer; const FontName='Tahoma'; //XP default FontSize=8; //XP default FontBold=False; //XP default FontItalic=False; //XP default ProgramName='Mozilla Firefox'; //Make sure it fits on one line begin CharsDesktop:=LoadCharsFromFont2(FontName,Fontsize,FontBold,FontItalic,False,False); Mask:=CreateBitmapMaskFromText(ProgramName,CharsDesktop) GetClientDimensions(Width,Height); if(FindBitmapMaskTolerance(Mask,x,y,0,0,Width,Height,0,10))then begin WriteLn('Found'); GetBitmapSize(Mask,Width,Height) ClickMouse(x+Width div 2,y-25,True); Wait(100) ClickMouse(x+Width div 2,y-25,True); end;
Thank you so much this helps A LOT!and Firefox FTW!
Masq, I have a question about reading Uppercase and Numbers..in particular regarding nicknames....What would be required to be able to read them ?
~RAM

Being able to use Uppercase letters and numbers in Nick Names when setting up the player array...I have always wondered what prevented this...instead of having to choose a "chunk" of lower case letter from it....as I have a few players that I created along time ago, before I was aware of SRL, and they do not handle randoms well because of this......IE, names like..... " B I G D O G" (all uppercase) or "1 B4d 4pp73" "pp" would be the only "chunk" from this one, excluding the numbers.....
Hope that makes it a bit clearer, I know other people have asked me about it to, but I wasn't aware of the limitations for this, thus not have an answer to give....
~RAM
There are currently 1 users browsing this thread. (0 members and 1 guests)