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

Looping click + drop

Joined
Dec 10, 2017
Sythe Gold
851
Messages
308
Location
United States
Discord Verified
Extreme Homosex
Heidy
Homosex
Potamus
Two Factor Authentication User
I am new to coding and C++, I am looking online for coding tutorials but a lot of the videos are for super simple models.

I am trying to loop this code 12 times, but I cant find anything to help. Also, I am very confused on how to make a working "drop inventory loop". If anyone could help me it would be amazing!

heres my code...


SetVirtualMouseJavaModeOn();

if (SetWindow("Old School") == ""){Die("Could not find runescape");}while(SelectInnerWindow("SunAwtCanvas")){}
// SetVirtualInputsOff();
global minClickInterval = 3000; // Minimum interval before clicking again. In Milliseconds.
global maxClickInterval = 5000; // Maximum interval before clicking again. In Milliseconds.


ClickMouseRandomArea(467, 619, 547, 624, 1);
Sleep(RandomInt(minClickInterval, maxClickInterval));
ClickMouseRandomArea(653, 406, 773, 419, 1);
Sleep(RandomInt(minClickInterval, maxClickInterval));
 
I am new to coding and C++, I am looking online for coding tutorials but a lot of the videos are for super simple models.

I am trying to loop this code 12 times, but I cant find anything to help. Also, I am very confused on how to make a working "drop inventory loop". If anyone could help me it would be amazing!

heres my code...


SetVirtualMouseJavaModeOn();

if (SetWindow("Old School") == ""){Die("Could not find runescape");}while(SelectInnerWindow("SunAwtCanvas")){}
// SetVirtualInputsOff();
global minClickInterval = 3000; // Minimum interval before clicking again. In Milliseconds.
global maxClickInterval = 5000; // Maximum interval before clicking again. In Milliseconds.


ClickMouseRandomArea(467, 619, 547, 624, 1);
Sleep(RandomInt(minClickInterval, maxClickInterval));
ClickMouseRandomArea(653, 406, 773, 419, 1);
Sleep(RandomInt(minClickInterval, maxClickInterval));

Something like this should work for at least looping.

Code:
SetVirtualMouseJavaModeOn();

if (SetWindow("Old School") == ""){Die("Could not find runescape");}while(SelectInnerWindow("SunAwtCanvas")){}
// SetVirtualInputsOff();
global minClickInterval = 3000; // Minimum interval before clicking again. In Milliseconds.
global maxClickInterval = 5000; // Maximum interval before clicking again. In Milliseconds.

def Main(runTime) {
  var runTimes = runTime;

  while(runTimes > 0) {
    runTimes = runTimes - 1;
   ClickMouseRandomArea(467, 619, 547, 624, 1);
   Sleep(RandomInt(minClickInterval, maxClickInterval));
   ClickMouseRandomArea(653, 406, 773, 419, 1);
   Sleep(RandomInt(minClickInterval, maxClickInterval));
  }
}

main(Number);

edit the "Number" text in
Code:
main(Number);
to be how many times you want to loop.
 
Last edited:
Runescape Gamblingrunescape gambling
Back
Top