Results 1 to 7 of 7

Thread: Which Mouse func/procedure should I use?

  1. #1
    Join Date
    Jun 2009
    Posts
    177
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Question Which Mouse func/procedure should I use?

    Right now I'm using the following code in attempt to move my mouse in a human-like way.
    Code:
    MoveMouseSpline(x, y, 10, 10);
    This function seems to have spikes in the movement: one second it's moving nicely (but a little slowly), the next it skips a couple of pixels, and goes extremely fast. Sometimes it has tremendous speed all the way through its path.

    So, can anyone recommend me a human-like, spline-generated (or not) mouse moving function or procedure?

    Thanks,

  2. #2
    Join Date
    Dec 2008
    Posts
    2,813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Mouse/MMouse (Mouse moves and clicks, MMouse just moves). ^^

  3. #3
    Join Date
    Sep 2006
    Location
    Canada
    Posts
    1,124
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    MMouse(x, y, RandX, RandY);

    Then theres Mouse(x, y, RandX, RandY, left: boolean); which is MMouse just it also clicks.

  4. #4
    Join Date
    Jun 2007
    Location
    Greenville, SC
    Posts
    1,149
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    An example to help you out:
    x,y = where the coordinate will be stored if the color is found in the box
    5401208 = the color
    257,183 = top left corner of box to search for the color in
    281,237 = bottom right corner of box
    4 = tolerance
    SCAR Code:
    if FindColorSpiralTolerance(x, y, 5401208, 257, 183, 281, 237, 4) then
    begin
      MMouse(x, y, 2, 2);//Will move the cursor to the color it found. The 2's are for randomness.
      if IsUpText(whatever the uptext is) then
      begin
        Mouse(x, y, 1, 1, false);//False right clicks.
        ChooseOption('Open' or w/e);//Open would be for a door or a gate.
      end else Writeln('Didn''t find the proper uptext');
    end else Writeln('Didn''t find the specified color in the given parameters.');

  5. #5
    Join Date
    Jun 2009
    Posts
    177
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks Cap and 99.

    Quote Originally Posted by Runescape Pro View Post
    An example to help you out:
    x,y = where the coordinate will be stored if the color is found in the box
    5401208 = the color
    257,183 = top left corner of box to search for the color in
    281,237 = bottom right corner of box
    4 = tolerance
    SCAR Code:
    if FindColorSpiralTolerance(x, y, 5401208, 257, 183, 281, 237, 4) then
    begin
      MMouse(x, y, 2, 2);//Will move the cursor to the color it found. The 2's are for randomness.
      if IsUpText(whatever the uptext is) then
      begin
        Mouse(x, y, 1, 1, false);//False right clicks.
        ChooseOption('Open' or w/e);//Open would be for a door or a gate.
      end else Writeln('Didn''t find the proper uptext');
    end else Writeln('Didn''t find the specified color in the given parameters.');
    I see that my "Registered User" status is misleading . However, I appreciate the example; a thanks to you, too .

  6. #6
    Join Date
    Jun 2007
    Location
    Greenville, SC
    Posts
    1,149
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Lol, I didn't think you were totally clueless, I just felt like writing a little example lol. Hope it helped =]

  7. #7
    Join Date
    Dec 2008
    Posts
    2,813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    LolL, I'd suggest reading through the SRL folder ^^ And the SRL manual, as you seem to know what you're doing, not just always the best/most efficient ways. :] Keep it up

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
  •