4 ms·
I use a posh script like this when i dont want the computer to lock. $ws = New-Object -COM wscript.shell; while($true){ $ws.SendKeys("j"); Sleep 60;} Ive use
by macromaniac 9y ago
I use a posh script like this when i dont want the computer to lock.
$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.
- ghkbrew 9y agoI used to use autohotkey to send an F13 key press every couple minutes to avoid lockout on a work computer where I wasn't allowed to increase the timeout
- unixhero 9y agoWait is Function keys above F12 still addressable?
- colejohnson66 9y agoIt’s Windows, so backwards compatibility mandates F13-F24 exist.
- striking 9y agoCertainly, my keyboard still has those buttons and I still use them
- r3vrse 9y agoTry this: http://www.zhornsoftware.co.uk/caffeine/ http://www.zhornsoftware.co.uk/caffeine/ Use it all the time when working from home/moving around and I don’t want my laptop to lock every 15.
- sbierwagen 9y agoThere's also a hardware solution: https://www.amazon.com/CRU-Inc-30200-0100-0013-CRU-DataPort-Jiggler/dp/B00OKUFE7K/ https://www.amazon.com/CRU-Inc-30200-0100-0013-CRU-DataPort-... 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/ https://www.amazon.com/Liberty-Mouse-Mover/dp/B079P592K8/
- mars4rp 9y agoThe script is overkill, just put some plastic under your mouse.
- deleted 9y ago[deleted]
- CamTin 9y agobash/X11 equivalent: function mouse_around { while true; do sleep "$1" xdotool mousemove_relative 1 1 xdotool mousemove_relative -- -1 -1 done } mouse_around 60
- krylon 9y agoMandatory XKCD: https://xkcd.com/196/ https://xkcd.com/196/