by macromaniac · 8y ago · 0 comments
$ws = New-Object -COM wscript.shell;
while($true){ $ws.SendKeys("j"); Sleep 60;}
Ive used it for demos that way the computer doesnt lock before the demo starts, its pretty short and easy to remember. Also on windows if you spam SendKeys("{Left}") everything you type is backwards and when you hit the windows key it freezes the computer in an interesting way, pretty fun.
function mouse_around {
while true; do
sleep "$1"
xdotool mousemove_relative 1 1
xdotool mousemove_relative -- -1 -1
done
}
mouse_around 60Use it all the time when working from home/moving around and I don’t want my laptop to lock every 15.
Or a powered turntable for your mouse, if you can't plug HID devices into your machine! https://www.amazon.com/Liberty-Mouse-Mover/dp/B079P592K8/