Results 1 to 6 of 6

Thread: Help W/ Mouse Function

  1. #1
    Join Date
    Jan 2008
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Help W/ Mouse Function

    why is my Mouse(x,y,5,5,true) so slow.

    SCAR Code:
    procedure GetBronze;
    begin
    if(FindColorTolerance(x,y,2902109,68,67,356,201,10)) then
    begin
    Mouse(x,y,1,1,true);
    end else
    end;

    i run this, and it clicks on the color, but it takes forever to get there.
    anybody know what's wrong?
    thanks

  2. #2
    Join Date
    Feb 2007
    Location
    EST (US East Coast)
    Posts
    250
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Put SetupSRL; as the first line in your main loop.
    Temporarily inactive.

  3. #3
    Join Date
    Jan 2008
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks alot, fixed it.

  4. #4
    Join Date
    Nov 2007
    Location
    Chile
    Posts
    1,901
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SetupSRL do:
    SCAR Code:
    MouseSpeed := 15;
      CheckHPFirst := True;
      Reincarnate := False;
      TalkAfterRandoms := False;
      RoadColor := 0;
      WaterColor := 0;
      BankColor := 0;
      LampSkill := 'mining';
      SetUpSRLReport;
      LoadCosineArrays;
      SymbolAccuracy:= 0.8;
      LoadNPCArray;
      LoadSRLBitMaps;
      SolveChatRandoms := True;
      SetupSRLAutoResponder
      UseSandWichSolver := True;
      UseBoxSolver := True;
      UseCerterSolver := True;
      UseFindmod := True;
      UseFindtrade := True;
      Screenshots := False;

  5. #5
    Join Date
    Jan 2008
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ok, thanks, where would i go if i wanted to change some of them?
    and now i have another problem.

    SCAR Code:
    program smith;
    {.include srl/srl.scar}

    var
    x, y : Integer;

    procedure GetIron;
    begin
    if(FindColorTolerance(x,y,2902109,171,139,201,162,10)) then
    begin
    Mouse(x,y,1,1,false);
    y := y+70;
    Mouse(x , y, 3, 3,True);
    end else
    end;

    procedure WalkToSmelt;
    begin
    if(FindColorSpiral(x,y,5409966,643,113,699,126)) then
    begin
    Mouse(x,y,1,1,true);
    end else
    end;

    begin
         SetupSRL;
         GetIron;
         WalkToSmelt
         end.

    it will take out the iron, but i wont walk to the smelter.

    **nvm, got it working**

  6. #6
    Join Date
    Nov 2007
    Location
    Chile
    Posts
    1,901
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by mysticalman View Post
    ok, thanks, where would i go if i wanted to change some of them?
    and now i have another problem.

    SCAR Code:
    program smith;
    {.include srl/srl.scar}

    var
    x, y : Integer;

    procedure GetIron;
    begin
    if(FindColorTolerance(x,y,2902109,171,139,201,162,10)) then
    begin
    Mouse(x,y,1,1,false);
    y := y+70;
    Mouse(x , y, 3, 3,True);
    end else
    end;

    procedure WalkToSmelt;
    begin
    if(FindColorSpiral(x,y,5409966,643,113,699,126)) then
    begin
    Mouse(x,y,1,1,true);
    end else
    end;

    begin
         SetupSRL;
         GetIron;
         WalkToSmelt
         end.

    it will take out the iron, but i wont walk to the smelter.

    **nvm, got it working**
    Try using RadialWalk + AutoColor for the walking

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Mouse function not working?
    By ttugamer in forum OSR Help
    Replies: 3
    Last Post: 02-01-2009, 09:43 PM
  2. Function (Mouse) Help! Too Slow
    By flamingvenom in forum OSR Help
    Replies: 2
    Last Post: 09-24-2008, 12:12 PM
  3. Trouble with mouse function...
    By 0wn 4 skill in forum OSR Help
    Replies: 16
    Last Post: 07-05-2008, 11:39 AM
  4. I really need to know this mouse function
    By sacco in forum OSR Help
    Replies: 3
    Last Post: 01-25-2008, 09:23 AM
  5. Split the Mouse Function in SRL
    By xxlegitxx in forum OSR Help
    Replies: 13
    Last Post: 09-13-2007, 09:38 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
  •