Results 1 to 8 of 8

Thread: x -2, y-2

  1. #1
    Join Date
    Aug 2008
    Location
    !!LOL!!
    Posts
    247
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default x -2, y-2

    SCAR Code:
    mouse(x-3,y-3,2,2,true);
    can some1 tell when to use x-2 , y-2 this and how and what advantage does it have

  2. #2
    Join Date
    Feb 2007
    Location
    Estonia.
    Posts
    1,938
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    x - 3 and y -3 just change the coords.
    Lets say your x is 10 and y is 10 then when you call
    SCAR Code:
    Mouse(x-3, y-3, 2, 2, True);
    Then it will be:
    SCAR Code:
    Mouse(10-3, 10-3, 2, 2, True);
    ->
    SCAR Code:
    Mouse(7, 7, 2, 2, True);
    ~Eerik~

  3. #3
    Join Date
    Feb 2007
    Location
    South East England
    Posts
    2,906
    Mentioned
    2 Post(s)
    Quoted
    8 Post(s)

    Default

    I believe it is for clicking lower down, or away from an area. It like, offsets the click;

    Jus' Lurkin'

  4. #4
    Join Date
    Aug 2008
    Location
    !!LOL!!
    Posts
    247
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    they both mean the same thing lol but thanks anyway

  5. #5
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    Quote Originally Posted by Torrent of Flame View Post
    I believe it is for clicking lower down, or away from an area. It like, offsets the click;

    Close. The lower the X, the further left the point is. The lower the Y, the HIGHER the point is.

  6. #6
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    The second pair of parameters are for randomness, so if you do no substracting from the first pair, and 2, 2, it will do randomness only further out, but if you add -2 to the first pair, and keep the 2, 2, it will click in a random 4*4 box around the coord.

  7. #7
    Join Date
    Aug 2008
    Location
    !!LOL!!
    Posts
    247
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i didn't fully understand that plz elaborate by using examples

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

    Default

    Well (m)mouse adds the rx and ry to the x and y and does not subtract it.

    So:
    SCAR Code:
    Mouse(10, 10, 2, 2, true);
    Will move anywhere within x: 10-12, and y: 10-12.

    SCAR Code:
    Mouse(10 - 2, 10 - 2, 2, 2, true);
    Will move anywhere within x: 8-10, and y : 8-10.

    SCAR Code:
    Mouse(10 -2, 10 -2, 0, 0, true);
    Will always move to 8, 8.

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
  •