Results 1 to 12 of 12

Thread: Can Scar/Srl read text?

  1. #1
    Join Date
    Oct 2006
    Posts
    16
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Can Scar/Srl read text?

    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!

  2. #2
    Join Date
    Jun 2007
    Location
    NSW, Australia.
    Posts
    541
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    It probably can, although I'm not sure.
    Check the manual by pressing F1 when SCAR is open (not the srl manual)

    -Pancakes.
    Quote Originally Posted by RAM View Post
    I sam sofa king wee todd did ! ~RAM
    My SRL Army Blog.


  3. #3
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    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?

  4. #4
    Join Date
    Oct 2006
    Posts
    16
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by YoHoJo View Post
    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?
    I am not sure right now, I was board on my computer and was thinking of things to make scar do. So I am going to go look into how SCAR reads text in RS and see if I can find a way to make it read normal text.

  5. #5
    Join Date
    May 2007
    Location
    NSW, Australia
    Posts
    2,823
    Mentioned
    3 Post(s)
    Quoted
    25 Post(s)

    Default

    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.

  6. #6
    Join Date
    Feb 2007
    Location
    Het ademt zwaar en moedeloos vannacht.
    Posts
    7,211
    Mentioned
    26 Post(s)
    Quoted
    72 Post(s)

    Default

    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!.

  7. #7
    Join Date
    Oct 2006
    Posts
    16
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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!

  8. #8
    Join Date
    Feb 2006
    Posts
    406
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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
    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;
    end.

  9. #9
    Join Date
    Oct 2006
    Posts
    16
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thank you so much this helps A LOT! and Firefox FTW!

  10. #10
    Join Date
    Oct 2006
    Location
    MI USA
    Posts
    3,166
    Mentioned
    6 Post(s)
    Quoted
    11 Post(s)

    Default

    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


  11. #11
    Join Date
    Feb 2006
    Posts
    406
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by RAM_RUNE View Post
    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
    you'll need to be more specific

    i guess you'll just need the font, and the coordinates to use with gettextatex

    if its just numbers and letters use "tr_alphanumeric" for the chars

  12. #12
    Join Date
    Oct 2006
    Location
    MI USA
    Posts
    3,166
    Mentioned
    6 Post(s)
    Quoted
    11 Post(s)

    Default

    Quote Originally Posted by masquerader View Post
    you'll need to be more specific

    I guess you'll just need the font, and the coordinates to use with gettextatex

    if its just numbers and letters use "tr_alphanumeric" for the chars
    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


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How To Read The Exact Text From A File?
    By Maninblack144 in forum OSR Help
    Replies: 5
    Last Post: 05-13-2008, 05:51 PM
  2. how do i make my script read the text box?
    By takeout in forum OSR Help
    Replies: 4
    Last Post: 09-28-2007, 10:22 PM
  3. how to read text
    By joundill in forum OSR Help
    Replies: 3
    Last Post: 01-07-2007, 09:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •