September 23, 20187 yr When i run the script, in the beginning it is fine, everything is happening like it is supposed, delays are working just fine, but after like 10-20 mins script start glitching (looks like it is running without any delays, just spam clicking every single task etc.) when i RR script everything is working fine again. Kinda interesting. Script im using for delay - Quote void randomDelay(float min, float max){ int random = (int)(max * Math.random() + min); try { sleep(random); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); }
September 23, 20187 yr I would say it's you silly random delay that is glitching out. Just use static sleep.
September 23, 20187 yr 15 minutes ago, Nikoman said: When i run the script, in the beginning it is fine, everything is happening like it is supposed, delays are working just fine, but after like 10-20 mins script start glitching (looks like it is running without any delays, just spam clicking every single task etc.) when i RR script everything is working fine again. Kinda interesting. Script im using for delay - Seems like your sleeps are being interrupted. Why, idk.
September 23, 20187 yr Author 15 minutes ago, Wife said: I would say it's you silly random delay that is glitching out. Just use static sleep. Isn't that too sketchy that every single time the delay is exact,for example, 500ms ...? Btw maybe you or @dreameo have some good random delay scripts, that are working fine?
September 23, 20187 yr 6 minutes ago, Nikoman said: Isn't that too sketchy that every single time the delay is exact,for example, 500ms ...? Btw maybe you or @dreameo have some good random delay scripts, that are working fine? (200, 700)
September 24, 20187 yr void randomDelay(float min, float max){ int random = (int)(max * Math.random() + min); try { sleep(random); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } @Nikoman you don't need to create a whole new method just for this, you don't need to declare a local variable and you don't need to use the Math class to get a random number. Everything can be done using the OSBot API in one line: sleep(random(min, max));
Create an account or sign in to comment