Results 1 to 3 of 3

Thread: Finding A Object!

  1. #1
    Join Date
    Jul 2007
    Posts
    34
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Finding A Object!

    Need Help With My Script Finding A Object!
    My Script Supposed To Find A Range And Right Click On It...


    SCAR Code:
    PROGRAM CatherbyCooker;
    VAR I: Integer; S: String;
    {.Include Srl/Srl.Scar}
    BEGIN
     OpenBank;
      Withdraw(1,1,28);
       IF FindSymbol(X,Y,'Cookery') THEN
        Mouse(X,Y,2,2,True);
         Wait(10000);
         IF FindObj(?,?,?,?) THEN //What I Put HERE?
        Mouse(X,Y,2,2,False);
    END

    Thats What I Have So Far...

  2. #2
    Join Date
    Sep 2006
    Posts
    6,089
    Mentioned
    77 Post(s)
    Quoted
    43 Post(s)

    Default

    Take a look at the tut 'Finding objects' in my sig
    Hup Holland Hup!

  3. #3
    Join Date
    Feb 2006
    Location
    L.A, USA
    Posts
    1,632
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Do that, and also, here I fixed it anyways. =]
    SCAR Code:
    program CatherbyCooker;
    var
      i: Integer;
      s: string;
    {.include SRL/SRL.Scar}
    begin
      SetUpSRL; // Don't forget. :]
      OpenBank;
      Withdraw(1, 1, 28);
      if (FindSymbol(x, y, 'Cookery'))then
      begin
        Mouse(x, y, 4, 4, true);
        FFlag(0);  // Wait's until flag dissapears.
      end;
      if (FindObj(x, y, 'Test', Color, 10))then/
      // Replace 'Test' with the range up text, you get when you
      // hover your mouse over it.
      // Using the color picker, grab the color of the range, and replace
      // color. Leave 10, it's a good tolerance for the range. =]
      begin
        Mouse(x, y, 3, 3, false);
        //?ChooseOption?
      end;
    end.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. need help finding object
    By Baked0420 in forum OSR Help
    Replies: 13
    Last Post: 12-15-2008, 01:27 AM

Posting Permissions

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