Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. var n =0
  2. var i=0
  3. function trenuj() {
  4. button1.click();
  5. setTimeout(function(){
  6. button2.click();
  7. },1000);
  8. }
  9. function DoIt(){
  10. if (n === 0){
  11.  trenuj();
  12.  n = 2;
  13.  i++;
  14. }
  15. if (n === 2 && i < 90) {
  16. setTimeout(function(){
  17.  n = 0;
  18.  DoIt();
  19.  console.log(i);
  20. },23000);            
  21. }
  22. }
  23. DoIt(); 
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement