Results 1 to 6 of 6

Thread: can any1 help me?

  1. #1
    Join Date
    Oct 2008
    Posts
    90
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default can any1 help me?

    im trying to learn scripting

    //////////////////////////////////////////

    program Stop;

    {.include SRL/SRL.Scar}


    begin
    Setupsrl;
    Wait(5000)
    MMouse(288, -37, 5, 5);
    Wait(1000 + Random(50));
    Mouse(288, -37, 5, 5, True);
    Wait(3000 + Random(1000))
    end.


    in this line:

    MMouse(288, -37, 5, 5);

    what does the 5, 5 stand for?/ do?

    and can you change the speed that the mouse moves?

  2. #2
    Join Date
    Mar 2007
    Posts
    3,042
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    The two fives mean the mouse can click anywhere from the original point to 5 pixels down and to the right. Imagine a box with the original point at the top left, and 5 pixels down and to the right as the bottom right corner. It can click anywhere in there.

    To change the mouse speed, just do: MouseSpeed := x;, where x is a number. The higher the number, the faster the mouse speed.
    :-)

  3. #3
    Join Date
    Aug 2006
    Posts
    338
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    hmm like random 5??

  4. #4
    Join Date
    Jul 2007
    Location
    Ottawa, Canada
    Posts
    930
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yes
    SCAR Code:
    Mouse(x, y, 5, 5, true);
      //is the same as
      Mouse(x + random(5), y + random(5), 0, 0, true);
    ~ Metagen

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

    Default

    however theres no need for mmouse mouse moves it and clicks


  6. #6
    Join Date
    Jul 2007
    Location
    Ottawa, Canada
    Posts
    930
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Meh, its his script he could WANT it to wait before it clicks
    ~ Metagen

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. any1 have a...?
    By yourock12345 in forum News and General
    Replies: 16
    Last Post: 09-20-2008, 10:02 PM
  2. any1 no y?
    By HayHay89 in forum News and General
    Replies: 2
    Last Post: 12-07-2007, 11:38 AM
  3. Any1 help me (no rs)
    By Smile in forum OSR Help
    Replies: 5
    Last Post: 06-12-2007, 08:24 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
  •