Екранни снимки:
Описание
If your PC is having trouble locking up or going to sleep, the caffeine will keep it awake. It works by simulating a keypress every 59 seconds, so your machine thinks you're still working on the keyboard and therefore won't lock the screen or activate the screensaver.
The icon is shown above - it's the leftmost one in the task tray, and that's all you see. Double-clicking the icon empties the coffee maker and temporarily disables the program. Double-tapping it again refills the pot and keeps your machine awake.
By default, the app is enabled at startup and runs every 59 seconds. You can change this behavior with seven command line switches:
* xx - where xx is a number which sets the number of seconds between simulated key presses. This must be the first text on the command line * -startoff - Application startup disabled. * -exitafter:xx - the application will terminate after xx minutes * -activefor:xx - application will become inactive after xx minutes * -appexit - Terminates the currently running application instance * -appon - make the currently running application instance active * - appoff - deactivates the currently running instance of the application * -replace - close the currently running instance, replacing it * -noicon - don't show task tray icon * -useshift - simulate the shift key instead of the right context menu key * -showdlg - show a dialog indicating whether caffeine is active * -ontaskbar - show a taskbar button (use with -showdlg) * -allowss - prevent sleep, but allow screen saver to start * -key:xx - Simulate using virtual key code xx
Note: the codes on the linked page are in hex, convert them to decimal for use with this parameter * -keypress - simulate a full keypress, not just keypress events * -oldicons - use more colored tray icons * - darkicons - use icons that are more suitable for dark-light color schemes * -watchwindow:xx - activates only when a window with xx in the title is found * -activehours:.......xxxxxxxx..... - puts 24. or x characters - for hours 0 through 23 of the day. Caffeine only activates for a few hours x