mirror of
https://github.com/RoganDawes/P4wnP1_aloa.git
synced 2025-03-27 10:01:45 +01:00
18 lines
506 B
JavaScript
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);
|
|
}
|
|
|