Results 1 to 5 of 5

Thread: Simple Script

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

    Default Simple Script

    I want to make a script to make my mouse follow a red spot on my game and so the mouse is always aimed at the red dot. Can someone either make one or teach me to make one please? The red spot moves so it would be great of the mouse follows it around.

  2. #2
    Join Date
    Dec 2008
    Location
    In a galaxy far, far away...
    Posts
    584
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Are you referring to the red dot while running in SMART?



    ~NS

  3. #3
    Join Date
    Dec 2006
    Location
    Canada, BC
    Posts
    728
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    hey, i just wrote this quickly. i didnt test it or anything so it might not work

    SCAR Code:
    program New;
    {.Include SRL/SRL.SCAR}
    var
      TPA : TPointArray;
      x, y : Integer;
     
    const
      Color = 0; //The Color of the red dot
      X1 = 0;
      Y1 = 0;
      X2 = 0;
      Y2 = 0;
      tolerance = 7;
      waitTime = 300; // How many milliseconds to wait between moving the mouse. the smaller the number the less the mouse will jump, but the more the script will lag.
     
    begin
      repeat
        if FindColorsSpiralTolerance(x, y, TPA, Color, X1, Y1, X2, Y2, tolerance) then
        begin
          MMouse(x, y, 0, 0);
          Wait(waitTime);
        end;
      until(false);
    end.

    pretty much for x1, y1, x2, y2 this is how you want it
    SCAR Code:
    .           y1
        _____________
       |                     |
    x1|                     |x2
       |_____________|
                 y2

    you wanna chose points at those locations around the game. hope this helps :]

    Edit: i asume you dont mean the red dot on SMART... lol. if you are talking about SMART (runescape) that red dot IS the mouse.
    Last edited by Lance; 05-23-2009 at 12:25 PM.
    Lance. Da. Pants.

  4. #4
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Red = 255 .

  5. #5
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

Thread Information

Users Browsing this Thread

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

Posting Permissions

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