Results 1 to 6 of 6

Thread: Random Number of Clicks?

  1. #1
    Join Date
    Jun 2007
    Location
    Minnesota
    Posts
    773
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Random Number of Clicks?

    I have searched around and I haven't been able to find a way to have the mouse click a random number of times. How can I do this?

  2. #2
    Join Date
    Feb 2007
    Location
    SparklesProd.com
    Posts
    2,406
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Just do Mouse a number of random times.

    Ie do the procedure Random(10) times.

  3. #3
    Join Date
    Jun 2007
    Location
    Minnesota
    Posts
    773
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks, I thought I tried that... Anyway thanks a lot!

  4. #4
    Join Date
    Jun 2007
    Location
    NSW, Australia.
    Posts
    541
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Example:

    SCAR Code:
    var i : Integer;
    begin
      for i:= 1 to Random(10) do
      begin
        Mouse(x, y, 0, 0, True);
      end;
    end;
    Quote Originally Posted by RAM View Post
    I sam sofa king wee todd did ! ~RAM
    My SRL Army Blog.


  5. #5
    Join Date
    May 2007
    Location
    baltimore, md
    Posts
    836
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    just for future referance if there s=is only one line there doesn't have to have a begin and end as well with a conditional statement
    eg.
    SCAR Code:
    var i : Integer;
    begin
      for i:= 1 to Random(10) do
      begin
        Mouse(x, y, 0, 0, True);
      end;
    end;


    begin
      for i:= 0 to random(10) do
      mouse(x,y,0,0,true);
      //this wouldn't do anything if there was something here
    end;
    yea thats how you should do it though.

    edit: 500th post

  6. #6
    Join Date
    Nov 2006
    Location
    NSW, Australia
    Posts
    3,487
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Just wondering, what you going to use that for?
    [CENTER][img]http://signatures.mylivesignature.com/54486/113/4539C8FAAF3EAB109A3CC1811EF0941B.png[/img][/CENTER]
    [CENTER][BANANA]TSN ~ Vacation! ~ says :I Love Santy[/BANANA][/CENTER]

    [CENTER][BANANA]Raymond - Oh rilie? says :Your smart[/BANANA][/CENTER]

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. random number 28+
    By ShowerThoughts in forum OSR Help
    Replies: 6
    Last Post: 10-13-2007, 03:40 PM
  2. Use an array value to generate a random number
    By IronTeapot in forum OSR Help
    Replies: 7
    Last Post: 10-18-2006, 11:59 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
  •