Results 1 to 2 of 2

Thread: finding chars

  1. #1
    Join Date
    Jul 2008
    Location
    Poland
    Posts
    375
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default finding chars

    So, i made this
    SCAR Code:
    program Spidek;
    {.include srl/srl.scar}
    var
      x, y, chars1: integer;
      text: string;


    begin
      SetUpSrl;
      chars1 := LoadChars2(AppPath + 'Fonts\SpidekChars');
      x := 15;
      y := 9;
      text := Trim(GetTextAtEx(x, y, 100, chars1, false, false, 0, 5, 16777215, 500, false, tr_AllChars));
      WriteLn(text);
    end.
    but it isnt working and i dont know why??

    a004 is text to find.
    :P

  2. #2
    Join Date
    Jun 2007
    Location
    Wednesday
    Posts
    2,446
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    Try changing
    chars1 := LoadChars2(AppPath + 'Fonts\SpidekChars');
    to
    chars1 := LoadChars2(AppPath + 'Fonts\SpidekChars\');
    (unlikely to fix, but possible).
    You can try setting the colour from clWhite (16777215) to -1 in case it's the colour that's a bit off - though unlikely due to the tolerance.
    You can try setting maxSpacing from 5 to 0 as that's what's recommended outside of RS.
    You can try loading the bitmap into Scar via LoadBitmap then setting the bitmap as the default place for colour finding and then searching as it may be a co-ordinates problem.

    All are unlikely to fix, but you never know
    By reading this signature you agree that mixster is superior to you in each and every way except the bad ways but including the really bad ways.

Thread Information

Users Browsing this Thread

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

Posting Permissions

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