Results 1 to 6 of 6

Thread: A Coordinates Clicker

  1. #1
    Join Date
    Dec 2007
    Posts
    25
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default A Coordinates Clicker

    Hey,

    I don't know where to start - what code should I type so that I can add coordinates for both left and right mouse clicks and perhaps even a loop?

    I would like to get started off with this -

    /Thanks.

  2. #2
    Join Date
    Dec 2007
    Location
    Middle of Here and There
    Posts
    417
    Mentioned
    6 Post(s)
    Quoted
    25 Post(s)

    Default

    Alrighty.

    Make sure you have the latest revision of SRL.

    For left clicks, use:

    SCAR Code:
    Mouse(x, y, ranx, rany: Integer; left: boolean);

    x and y are your coordinates, ranx and rany are a random number added to x and y for, well, randomness. If left is true, it clicks left. Else, it clicks right.

    So, let's say you wanted to left click at one place, and right at another.

    SCAR Code:
    program CoordClicker;
    {.include SRL/SRL.scar}

    var
      x, y: Integer;  //With every script that uses coordinates, you must declare x and y.

    begin
      SetupSRL; //You must do this for the script to work right.
      Mouse(200, 200, 3, 3, True);  //Will left click at roughly 200, 200
      Wait(500);
      Mouse(550, 550, 5, 5, False);  //Will right click roughly at 550, 550
    end.

    Look for tutorials. They're very useful. ^.^

  3. #3
    Join Date
    Jul 2008
    Posts
    907
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    mouse can be used for left or right clicks you could do mouse(x, y, 3, 3, false);
    whatever you need in there but it right clicks


  4. #4
    Join Date
    Dec 2007
    Location
    Middle of Here and There
    Posts
    417
    Mentioned
    6 Post(s)
    Quoted
    25 Post(s)

    Default

    Quote Originally Posted by sandos1234 View Post
    mouse can be used for left or right clicks you could do mouse(x, y, 3, 3, false);
    whatever you need in there but it right clicks

    I.. Already said that O.O

    Again.. O.O


  5. #5
    Join Date
    Dec 2007
    Posts
    25
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks guys

  6. #6
    Join Date
    Jul 2008
    Posts
    907
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ok..? sorry it didn't show it for me at first, it looks like your post has doubled in size :P


Thread Information

Users Browsing this Thread

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

Similar Threads

  1. DTM at mouseitem coordinates?
    By Mariuswbz in forum OSR Help
    Replies: 6
    Last Post: 08-15-2008, 02:19 PM
  2. Store Coordinates?
    By Putnam in forum OSR Help
    Replies: 5
    Last Post: 04-21-2008, 03:57 PM
  3. Coordinates
    By NosePicker in forum OSR Help
    Replies: 2
    Last Post: 03-26-2008, 04:40 PM
  4. Coordinates
    By qweqwe in forum OSR Help
    Replies: 4
    Last Post: 03-01-2007, 03:53 PM
  5. disregarding certain coordinates?
    By omgh4x0rz in forum OSR Help
    Replies: 7
    Last Post: 02-25-2007, 03:25 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
  •