Results 1 to 9 of 9

Thread: Mouse(x,y,4,4, True);

  1. #1
    Join Date
    Apr 2007
    Posts
    16
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Mouse(x,y,4,4, True);

    Hey guys i just have a quick question for you,

    I know that

    SCAR Code:
    Mouse(x,y,4,4, True);
    Will left click at x+(a random of 4) y+(a random of 4)
    But will

    SCAR Code:
    Mouse(x,y,4+15,4, True);
    Left click at x+((a random of 4)+15) y+(a random of 4)
    or will it
    Left click at x+(a random of 19) y+(a random of 4)
    If its the latter then is there anyway to get it click x+((a random of 4)+15) without writing a new function?

  2. #2
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    The last one is correct, and I do not think you can make it do that without rewriting the mouse procedure.

  3. #3
    Join Date
    Apr 2007
    Posts
    16
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Zytex! View Post
    The last one is correct, and I do not think you can make it do that without rewriting the mouse procedure.
    Hey thanks for the VERY quick reply. And i was hoping you were not going to tell me that, but to be honest it is what i was expecting to hear. lol

  4. #4
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    Quote Originally Posted by graffy View Post
    Hey thanks for the VERY quick reply. And i was hoping you were not going to tell me that, but to be honest it is what i was expecting to hear. lol
    Hehe
    I am here to help

  5. #5
    Join Date
    Apr 2007
    Posts
    16
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Zytex! View Post
    Hehe
    I am here to help
    LOL the good news is that i just worked out how to do it.

    The Value of "x" is already set so i can just add the 15 to it before calling the mouse procedure.
    SCAR Code:
    x := x+15;
    Mouse(x,y,4,4,True);
    That seems a hell of a lot easier. Haven't tested it yet and wont be able to test it till tomorrow but i cant see why it wouldn't/shouldn't work.

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

    Default

    Graffy, you could also do this:

    SCAR Code:
    mouse(x+15,y,4,4,true);

    That way, x still keeps its original value if you happen want to keep it in memory. It also saves a line of code .

  7. #7
    Join Date
    Apr 2007
    Posts
    16
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Capricorn View Post
    Graffy, you could also do this:

    SCAR Code:
    mouse(x+15,y,4,4,true);

    That way, x still keeps its original value if you happen want to keep it in memory. It also saves a line of code .
    Mate your a genius Thanks for that idea.

  8. #8
    Join Date
    Jun 2007
    Location
    La Mirada, CA
    Posts
    2,484
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    Could also do

    SCAR Code:
    Mouse(x, y, RandomRange(4, 19), 4, True);

    "Failure is the opportunity to begin again more intelligently" (Henry Ford)


  9. #9
    Join Date
    Apr 2007
    Posts
    16
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    mouse(x+15,y,4,4,true);
    works perfectly

    Thanks again Capricorn

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Mouse(x, y, +10, +10, true);
    By orange in forum OSR Help
    Replies: 8
    Last Post: 08-15-2008, 08:08 PM

Posting Permissions

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