It works for me, with no side effects, but hasn't had enough testing for me to sure it's entirely better than using F15. Uses a different method (calling SetThreadExecutionState to tell Windows not to sleep. It's included for compatibility with older systems which might need this
This is more likely to cause side effects, as a full key down/key up is generated. Your choice of key could have side effects Instead of F15, the key specified by xx is used. This solves some of the issues with the above apps, but may cause the shift key to become "unpressed" sometimes This is the traditional behavior so is well tested, but can cause issues with Putty sessions, PowerPoint, Google Docs or Smartsheet The F15 'key up' event is used every 59 seconds.
-key:xx - simulate using virtual key code xx.-ontaskbar - show a task bar button (use with -showdlg).-showdlg - shows a dialog indicating whether caffeine is active.-stes - tell Windows to stay awake, don't use F15.-allowss - prevent sleep, but allow the screensaver to start.-useshift - simulate the shift key instead of F15.-noicon - does not show a task tray icon.-replace - closes the current running instance, replacing it.-apptoggleshowdlg - toggles the running state, and shows dialog.-apptoggle - toggles the running state of the current running instance of the application.-appoff - makes the current running instance of the application inactive.-appon - makes the current running instance of the application active.
If you have problems with your PC locking or going to sleep, caffeine will keep it awake. Caffeine Prevent your computer from going to sleep