Results 1 to 6 of 6

Thread: IsUpText problema

  1. #1
    Join Date
    Apr 2007
    Location
    The Buckeye State
    Posts
    482
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default IsUpText problema

    SCAR Code:
    program New;
    {.include SRL\SRL.scar}

    Procedure BankInventory;
    var WillowDTM: integer;

    begin
      WillowDTM := DTMFromString('78DA633CCFC4C0308991010420240383BB830' +
                 '4C32F28FF3F1030EE07AA9985AA06C682F1190F02D54C20A0E610' +
                 '504D170135D7806ADA09A8B905543383809AB3403573F0AB01002' +
                 '9EF0F55');
      MakeCompass('S');
      wait(345+random(123));
      OpenBankQuiet('db');
      wait(321+random(111));
      if(FindDTM(WillowDTM, x, y, 625, 324, 815, 587))then
      begin
        MMouse(x, y, 2, 2);
        wait(300+random(123));
        if(IsUpText('llo'))then
        begin
          Mouse(x, 2, 0, 0, false);
          wait(100+random(99));
          ChooseOption(x, y, 'All');
          wait(123+random(123));
          DepositAll;
        end;
      CloseBank;
      wait(321+random(123));
      end;
    end;

    begin
      SetupSRL;
      ActivateClient;
      wait(3000+random(100));
      BankInventory;
    end.

    This is just my banking procedure for my woodcutting script that I'll hopefully be releasing soon. The procedure finds the bitmap, moves the mouse to the bitmap, but i guess it's not finding the text "illow" using IsUpText, as it does not right click the willows. I was having trouble with this with clicking on the willow, but it works fine now.

    I like my coffee black just like my metal.

  2. #2
    Join Date
    Apr 2007
    Location
    Texas
    Posts
    1,668
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    if it works fine now... then what is the problem?
    [IMG]http://farm3.static.flickr.com/2120/2052732965_348f3629d0_o.jpg[/IMG]

  3. #3
    Join Date
    Apr 2007
    Location
    The Buckeye State
    Posts
    482
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    it still for me does not right click on the willow log in the inventory...
    I like my coffee black just like my metal.

  4. #4
    Join Date
    Jun 2006
    Location
    USA
    Posts
    1,828
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Try IsUpTextMulti, works most of the time, if one word is not found, it will search for another.
    SCAR Code:
    IsUpTextMulti('Wil','llo','ow log')

    Btw, if you already search for willow dtm, you probably dont need to check text on it.

  5. #5
    Join Date
    Apr 2007
    Location
    The Buckeye State
    Posts
    482
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    works now, idk what was the problem =\.
    I like my coffee black just like my metal.

  6. #6
    Join Date
    Jun 2006
    Location
    USA
    Posts
    1,828
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Esteban View Post
    works now, idk what was the problem =\.
    Sometimes the color of background messes up the text reading. (White text + grey/white background)

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. IsUpText Help
    By Electron Man in forum OSR Help
    Replies: 4
    Last Post: 11-15-2007, 11:03 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
  •