Looping click + drop

Discussion in 'Sythe Lib Archive' started by Socalemt, Jul 6, 2019.

Looping click + drop
  1. Unread #1 - Jul 6, 2019 at 6:49 PM
  2. Socalemt
    Joined:
    Dec 10, 2017
    Posts:
    308
    Referrals:
    0
    Sythe Gold:
    851
    Vouch Thread:
    Click Here
    Discord Unique ID:
    389585883818622987
    Discord Username:
    Chowder#9092
    Two Factor Authentication User Heidy Extreme Homosex Homosex Potamus

    Socalemt www.Twitch.tv/dutz
    Socalemt Donor

    Looping click + drop

    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));
     
  3. Unread #2 - Jul 6, 2019 at 8:25 PM
  4. Twisted Illusions
    Joined:
    Jul 5, 2019
    Posts:
    4
    Referrals:
    0
    Sythe Gold:
    4

    Twisted Illusions Newcomer

    Looping click + drop

    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: Jul 7, 2019
< RuneLite | Sleep for Random interval >

Users viewing this thread
1 guest


 
 
Adblock breaks this site