Results 1 to 11 of 11

Thread: making it search for colors

  1. #1
    Join Date
    Aug 2007
    Posts
    66
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default making it search for colors

    Hi I have a question what command do I use if I want the camera to rotate in case it can't find the color.

    controls for rotating the camera are the same as Runescape

    note: This is not for Runescape

  2. #2
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Hmm our MakeCompass('N') is bassed on the reall compass of the MM i mean the N w e s compass so, i think you just should use keyboard functions, yes i am searching for you.
    ~Hermen

  3. #3
    Join Date
    Aug 2007
    Posts
    66
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

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

    const
      TimetoWait = 2500;
    var
    x, y : Integer;

    procedure test;
    begin
       SetupSrl;
    end;

    procedure KillSaqs;
    begin

        if(FindColor(x, y, 2901851, 0, 100, 660, 403))then
        begin
          Mouse(x, y, 10, 10, true);
           Wait(10000+random(2000));
             KeyDown(VK_F5);
              Wait(1000+random(100));
               KeyUp(VK_F5);
        end;    Wait(3000+random(1000));
    end;



    //Main Loop//
    begin
      repeat
         test;
          KillSaqs;
      until(false);
    end.

    This is what I got so far...
    I also constantly get file access error while the script is running.
    If I take out SetupSrl; it fixes it, but then mouse goes soooo slow.

  4. #4
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Use setupsrl; and just don't see the 'file acces error'
    ~Hermen

  5. #5
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    Maybe:

    SCAR Code:
    Repeat
     KeyDown(VK_LEFT)
     Wait(800);
     KeyUp(VK_LEFT);
     I := 1 +1;
    Until(i > 9) or FindColor(blah);


  6. #6
    Join Date
    Aug 2007
    Posts
    66
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by NaumanAkhlaQ View Post
    Maybe:

    SCAR Code:
    Repeat
     KeyDown(VK_LEFT)
     Wait(800);
     KeyUp(VK_LEFT);
     I := 1 +1;
    Until(i > 9) or FindColor(blah);

    Sorry for my noobness but where do i put this in my script?

  7. #7
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    In the Place where you want to find the color

  8. #8
    Join Date
    Aug 2007
    Posts
    66
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I did now i get an error Unknown identifier 'I' in script

  9. #9
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Var
    I:integer;
    ~Hermen

  10. #10
    Join Date
    Aug 2007
    Posts
    66
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I got it down Thanks guys rep+ for both

  11. #11
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. make it search for 2 colors near another
    By RaptorBlaze in forum OSR Help
    Replies: 12
    Last Post: 08-26-2008, 02:50 PM
  2. making an srl search engine for firefox and ie
    By man slaughter in forum News and General
    Replies: 16
    Last Post: 02-09-2008, 05:54 PM
  3. Replies: 2
    Last Post: 10-07-2007, 04:20 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
  •