• Log in or sign up for an account here: https://www.sythe.org/login

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.
 
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.


i thought he didn't want to click at same
coords again, so some random would be nice to
 
but he did want to click in the defined area again.. MouseBox = clicks a coordinate inside a box.

ok, you're the guru, you're right ;)
 
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.
 
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.
 
Runescape Gamblingrunescape gambling
Back
Top