Need A Simple Random Script

Discussion in 'Script Requests' started by blind, Aug 4, 2007.

Need A Simple Random Script
  1. Unread #1 - Aug 4, 2007 at 11:16 PM
  2. blind
    Joined:
    Jul 22, 2005
    Posts:
    341
    Referrals:
    0
    Sythe Gold:
    0

    blind Forum Addict
    Banned

    Need A Simple Random Script

    Hello, I need a script which will randomly click within a defined area and also click in random intervails of time, from maybe 30 sec - 140 sec. It must not click the same cord more then once.

    All help is appericated, thanks.
     
  3. Unread #2 - Aug 5, 2007 at 6:49 AM
  4. Gofez0r
    Joined:
    Jan 21, 2007
    Posts:
    1,820
    Referrals:
    1
    Sythe Gold:
    0

    Gofez0r Guru

    Need A Simple Random Script

    Just set the area to the constants .. Then clicks inside the area every 30-140 sec.

    Code:
    program New;
    
    const
      TopCornerX = 0; // Set area coordinates here.
      TopCornerY = 0;
      LowCornerX = 0;
      LowCornerY = 0;
    
    begin
      ActivateClient;
      repeat
        MouseBox(TopCornerX, TopCornerY, LowCornerX, LowCornerY);
        Wait(30000 + Random(110000)); //Waits 30-140 sec.
      until False;
    end.
    
     
  5. Unread #3 - Aug 5, 2007 at 3:55 PM
  6. the scar noob
    Joined:
    Jan 21, 2007
    Posts:
    620
    Referrals:
    0
    Sythe Gold:
    0

    the scar noob Forum Addict

    Need A Simple Random Script


    i thought he didn't want to click at same
    coords again, so some random would be nice to
     
  7. Unread #4 - Aug 5, 2007 at 3:57 PM
  8. Gofez0r
    Joined:
    Jan 21, 2007
    Posts:
    1,820
    Referrals:
    1
    Sythe Gold:
    0

    Gofez0r Guru

    Need A Simple Random Script

    but he did want to click in the defined area again.. MouseBox = clicks a coordinate inside a box.
     
  9. Unread #5 - Aug 5, 2007 at 3:58 PM
  10. the scar noob
    Joined:
    Jan 21, 2007
    Posts:
    620
    Referrals:
    0
    Sythe Gold:
    0

    the scar noob Forum Addict

    Need A Simple Random Script

    ok, you're the guru, you're right ;)
     
  11. Unread #6 - Aug 5, 2007 at 4:00 PM
  12. Town
    Joined:
    Jan 21, 2007
    Posts:
    3,776
    Referrals:
    3
    Sythe Gold:
    5

    Town Grand Master
    Scar Programmers

    Need A Simple Random Script

    If you never want it to click the same coord twice (if it isn't for Runescape and it is extremely serious that never happens) then you can put all the previously used digits into an array and make it so if one of them is equal then it changes coords. Then again, after it finished with everything in that square it would stop completely. What GoF made is as random as it will get if you are using it for Runescape.
     
  13. Unread #7 - Aug 6, 2007 at 12:03 AM
  14. blind
    Joined:
    Jul 22, 2005
    Posts:
    341
    Referrals:
    0
    Sythe Gold:
    0

    blind Forum Addict
    Banned

    Need A Simple Random Script

    Thanks Gofez0r, but I have one issue.
    The mouse moves to the random spot but does not click there.
     
  15. Unread #8 - Aug 9, 2007 at 8:30 AM
  16. pker overkil
    Joined:
    Feb 11, 2007
    Posts:
    387
    Referrals:
    0
    Sythe Gold:
    0

    pker overkil Forum Addict

    Need A Simple Random Script

    This should work


    Code:
    program New;
    var
      X:Integer;
      Y:Integer;
    
    const
      TopCornerX = 0; // Set area coordinates here.
      TopCornerY = 0;
      LowCornerX = 0;
      LowCornerY = 0;
    
    begin
      ActivateClient;
      repeat
        MouseBox(TopCornerX, TopCornerY, LowCornerX, LowCornerY);
        GetMousePos(X,Y);
        ClickMouse(X,Y);
        Wait(30000 + Random(110000)); //Waits 30-140 sec.
      until False;
    end.
     
< Catherby yew cutter | fishing guild fisher >

Users viewing this thread
1 guest


 
 
Adblock breaks this site