Comment Comment by florian_s I tried: let left = () => captureBtnLeftFunc($.Event()) let right = () => captureBtnRightFunc($.Event()) () => captureBtnRightFunc($.Event()) setInterval(() => { console.log("Guessing"); if (Math.random() < 0.5) { left() } else { right() } }, 1000) parent florian_s 7 years ago