• m0stlyharmless@lemmy.zip
    link
    fedilink
    arrow-up
    14
    arrow-down
    1
    ·
    2 days ago

    There’s a tool for Windows called Caffeine that simulates pressing the F15 key, which is almost never used by any software being that most keyboards don’t have function keys that go that high.

    From the webpage:

    If you have problems with your PC locking or going to sleep, caffeine will keep it awake. It works by simulating a keypress once every 59 seconds, so your machine thinks you’re still working at the keyboard, so won’t lock the screen or activate the screensaver.

    • LePoisson@lemmy.world
      link
      fedilink
      arrow-up
      15
      ·
      2 days ago

      I can’t install unapproved software on my work laptop, probably like most others hence I ain’t messing with that.

      • m0stlyharmless@lemmy.zip
        link
        fedilink
        arrow-up
        4
        ·
        2 days ago

        It’s up to application software to define what it does. I have never seen a keyboard with function keys beyond F12 in person, but they do exist. Software is very unlikely to respond to F15, which is why Caffeine uses it to keep the system awake. Notably, the program can also instruct Windows to stay awake using its native mechanism instead (possibly insufficient for something like MS Teams) or another virtual key code of the user’s specification.