Results 1 to 3 of 3

Thread: Smart issue with findtext

  1. #1
    Join Date
    Mar 2007
    Location
    Mars, I thought all men were from Mars.
    Posts
    513
    Mentioned
    7 Post(s)
    Quoted
    124 Post(s)

    Default Smart issue with findtext

    When I try to use the below function with Smart enabled it doesn't find the text. But it I disable Smart, it finds it.

    Simba Code:
    if(FindText(x, y, 'light', SmallChars, 59, 440, 92, 458))then
        begin
          Writeln('Cannot light a log here');
        end;

  2. #2
    Join Date
    Dec 2011
    Posts
    209
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Do you have SMART included in the script?
    Such as( under program new; ) :
    Simba Code:
    {$i srl/srl/misc/smart.scar}

  3. #3
    Join Date
    May 2008
    Location
    ;)
    Posts
    576
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by bud_wis_er_420 View Post
    When I try to use the below function with Smart enabled it doesn't find the text. But it I disable Smart, it finds it.

    Simba Code:
    if(FindText(x, y, 'light', SmallChars, 59, 440, 92, 458))then
        begin
          Writeln('Cannot light a log here');
        end;
    Looks like you're trying to get the last message from the chatbox. Check out chat.scar in your SRL folder. There are a couple things you can try, but not all will work. InChat, or GetChatBoxText are probably your best bet from my quick glance. But I suggest you head over there and check everything out for yourself.

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
  •