+ 1
Can any one please help me ...... to how to use this script
var mouseDown = false; window.onmousedown = function (ev) { mouseDown = ev.button === 0 } window.onmouseup = function () { mouseDown = false; } window.setInterval(function () { if (mouseDown) { fireKeyboardEvent("keydown", 32); fireKeyboardEvent("keyup", 32); fireKeyboardEvent("keydown", 69); fireKeyboardEvent("keyup", 69); } }, 50);
1 Réponse
+ 6
I think it is better if you start learning JS from the beginning. 😊 It helps you to understand the functions