Results 1 to 4 of 4

Thread: I need a tiny bit of help with one of the Functions

  1. #1
    Join Date
    Sep 2007
    Posts
    41
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    I need a tiny bit of help with one of the Functions

    Okay, to cut this short: I am working on a little autoer script which I hope will give me the SRL membership. Now, I have heard many people say I should use MoveMouseSmooth or MoveMouseSmoothEx, but focus on using MMouse and Mouse. Now, I need a bit of help regarding on what each of the things do which I have to "substitude" (meaning things like ranx,Mousex, etc...)
    Here are the two funtions:
    SCAR Code:
    Mouse(mousex, mousey, ranx, rany: Integer; left: Boolean);
    MMouse(x, y, rx, ry: integer);
    Thanks a lot,
    Toterache

  2. #2
    Join Date
    Nov 2007
    Posts
    9
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Im new too But I *Think* You replace x and y or mousex and mousey with your own Variables (you have to declare them ans integers before using). For ranx, rany, rx, ry you add a variable, so you just add a number (is part of antiban so that you script looks like less of a cheater because it doesn't click in the same spot twice, (more human)

    example

    program new;

    var
    x, y: integer;

    begin
    procedure FindColorAndClick;
    findcolor(x, y, colortofindandclick, 100, 100, 100, 100); //Stores co-ordinates of color at x and y
    Mouse(x, y, 0, 0); //moves mouse and clicks on color
    end;

    This is only one example, there are many other ways to use it but they all save the cordinates to 2 varibales and the use the in the 'mouseclicking' function.

  3. #3
    Join Date
    Mar 2007
    Location
    Netherlands->Amersfoort.
    Posts
    1,615
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    When you use Mouse and MMouse have {.include srl/srl.scar} included and on the begin of you're main loop call: SetUpSRl;

    SCAR Code:
    program new;
    {.include srl/srl.scar}
    var
    x, y: integer;

    procedure FindColorAndClick;
      findcolor(x, y, 1337, 100, 100, 100, 100); //Stores co-ordinates of color at x and y
      Mouse(x, y, 0, 0); //moves mouse and clicks on color
    end;

    begin
      SetUpSrl;
      FindColorAndClick;
    end.

  4. #4
    Join Date
    Apr 2007
    Location
    UK
    Posts
    2,295
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by rikjess View Post
    When you use Mouse and MMouse have {.include srl/srl.scar} included and on the begin of you're main loop call: SetUpSRl;

    SCAR Code:
    program new;
    {.include srl/srl.scar}
    var
    x, y: integer;

    procedure FindColorAndClick;
      findcolor(x, y, 1337, 100, 100, 100, 100); //Stores co-ordinates of color at x and y
      Mouse(x, y, 0, 0); //moves mouse and clicks on color
    end;

    begin
      SetUpSrl;
      FindColorAndClick;
    end.
    SCAR Code:
    program new;
    {.include srl/srl.scar}
    var
    x, y: integer;

    procedure FindColorAndClick;
    begin
      findcolor(x, y, 1337, 100, 100, 100, 100); //Stores co-ordinates of color at x and y
      Mouse(x, y, 0, 0, true); //moves mouse and clicks on color
    end;

    begin
      SetUpSrl;
      FindColorAndClick;
    end.

    Corrected . Missed the boolean for left click and begin in the procedure

    Rogeruk's Al-Kharid Tanner V1.1 [Released]
    Rogeruk's Barbarian Crafter [Coming Soon]
    Rogeruk's Guild Fisher [Coming Soon]
    !! - Taking Requests - !!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. ISO for tiny xp
    By kingarabian in forum General
    Replies: 8
    Last Post: 10-23-2007, 10:16 PM
  2. Tiny Mistake
    By TheGodfather in forum OSR Help
    Replies: 5
    Last Post: 02-13-2007, 07:00 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
  •