Can any one please help me ...... to how to use this script | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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);

1st Dec 2018, 11:59 AM
Sayandeep Basu
Sayandeep Basu - avatar
1 Answer
+ 6
I think it is better if you start learning JS from the beginning. 😊 It helps you to understand the functions
1st Dec 2018, 1:05 PM
Muhd Khairul Amirin
Muhd Khairul Amirin - avatar