Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



I 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


Wait is Function keys above F12 still addressable?


It’s Windows, so backwards compatibility mandates F13-F24 exist.


Certainly, my keyboard still has those buttons and I still use them


Which keyboard is this? I'm a keyboard-only user and would love to have an extra row of keys for shortcuts.


Can't speak for the parent, but Apple USB keyboards have F13-F19.


bash/X11 equivalent:

  function mouse_around {
    while true; do
      sleep "$1"
      xdotool mousemove_relative 1 1
      xdotool mousemove_relative -- -1 -1
    done
  }
  
  mouse_around 60


Mandatory XKCD: https://xkcd.com/196/


The script is overkill, just put some plastic under your mouse.


Try this: 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.


There's also a hardware solution: 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/




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: