P4wnP1_aloa/dist/HIDScripts/mousejiggle.js
2018-07-29 20:18:06 +02:00

18 lines
506 B
JavaScript

// Creds to Rogan Dawes, MouseJiggler idea was part of USaBUSe
//
// Moves the mouse slightly from time, to simulate user activity (supress screensaver/lockscreen)
// Meant to run as background job
// With extrem settings, it could be use to prank users
scale = 2.0; //if not stepped, 127 is vali max
sleeptime = 3000;
stepped = true;
while (true) {
x = (Math.random() * 2.0 - 1.0) * scale;
y = (Math.random() * 2.0 - 1.0) * scale;
if (stepped) moveStepped(x,y);
else move(x,y);
delay(sleeptime);
}