Results 1 to 2 of 2

Thread: need help moving mouse down(please read . . . )

  1. #1
    Join Date
    Nov 2007
    Posts
    42
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default need help moving mouse down(please read . . . )

    Dumb question, but yea. IT's going to be this way since SRL is not up to date...Can still make the s cript work good though.


    I want to move the mouse to an object,

    right click

    move mouse down 10 for sure
    with a randomness of about 20




    How can I do this?

  2. #2
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    Here's basically how it would look:
    Simba Code:
    procedure MoveMyMouse;
    var
      X,Y: Integer;
    begin
      MMouse(Object.X, Object.Y, 5, 5); // Move the mouse to your object's X/Y coordinate with random 5 X and random 5 Y
      ClickMouse2(mouse_right); // Right-click
      GetMousePos(X,Y);
      MMouse(X, (Y+10), 0, 20); // Move the mouse down +10 with a random +/- 20
    end;

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


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
  •