Skip to content

Mouse Jiggler

This example makes the mouse cursor move slightly every 10 seconds to prevent the computer from going to sleep or activating a screensaver. The loop runs indefinitely until the device is unplugged. You can adjust the DELAY value above LOOP_END to change the interval between movements. You can also modify the MOUSE commands to change the distance the cursor moves.

LOOP_BEGIN
MOUSE 10 -10
DELAY 100
MOUSE -10 10
DELAY 100
MOUSE -10 10
DELAY 100
MOUSE 10 -10
DELAY 2000
LOOP_END