Adblock breaks this site

Need A Simple Random Script

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

  1. blind

    blind Forum Addict
    Banned

    Joined:
    Jul 22, 2005
    Posts:
    341
    Referrals:
    0
    Sythe Gold:
    0
    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.
     
  2. Gofez0r

    Gofez0r Guru

    Joined:
    Jan 21, 2007
    Posts:
    1,820
    Referrals:
    1
    Sythe Gold:
    0
    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.
    
     
  3. the scar noob

    the scar noob Forum Addict

    Joined:
    Jan 21, 2007
    Posts:
    620
    Referrals:
    0
    Sythe Gold:
    0
    Need A Simple Random Script


    i thought he didn't want to click at same
    coords again, so some random would be nice to
     
  4. Gofez0r

    Gofez0r Guru

    Joined:
    Jan 21, 2007
    Posts:
    1,820
    Referrals:
    1
    Sythe Gold:
    0
    Need A Simple Random Script

    but he did want to click in the defined area again.. MouseBox = clicks a coordinate inside a box.
     
  5. the scar noob

    the scar noob Forum Addict

    Joined:
    Jan 21, 2007
    Posts:
    620
    Referrals:
    0
    Sythe Gold:
    0
    Need A Simple Random Script

    ok, you're the guru, you're right ;)
     
  6. Town

    Town Grand Master
    Scar Programmers

    Joined:
    Jan 21, 2007
    Posts:
    3,776
    Referrals:
    3
    Sythe Gold:
    5
    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.
     
  7. blind

    blind Forum Addict
    Banned

    Joined:
    Jul 22, 2005
    Posts:
    341
    Referrals:
    0
    Sythe Gold:
    0
    Need A Simple Random Script

    Thanks Gofez0r, but I have one issue.
    The mouse moves to the random spot but does not click there.
     
  8. pker overkil

    pker overkil Forum Addict

    Joined:
    Feb 11, 2007
    Posts:
    387
    Referrals:
    0
    Sythe Gold:
    0
    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 >


 
 
Adblock breaks this site