You are on page 1of 2

caffeine

===============================================================================
Run this to prevent your PC screen from locking. It does this by simulating
that you've used the F15 key once every 59 seconds.
Double-click the icon to temporarily disable Caffeine, and permit your screen
to lock.
Under Win98:
a key down and then a key up event is simulated
Under Win2000/XP: a key up event is simulated
The additional event is required under Windows 98, otherwise the screen will
still lock.
Command-line options:
caffeine.exe -startoff
caffeine.exe -exitafter:xxx
caffeine.exe -activefor:xxx
caffeine.exe -inactivefor:xxx
caffeine.exe -appexit
caffeine.exe -appon
caffeine.exe -appoff
caffeine.exe -apptoggle
e of the

Application starts inactive


Application will terminate after xxx minutes
Application will become inactive after
xxx minutes
Application will become active after
xxx minutes
Terminates current running instance of
application
Makes the current running instance of the
application active
Makes the current running instance of the
application inactive
Toggles the state of the current running instanc

application
caffeine.exe -apptoggleshowdlg Toggles the state of the current running instanc
e of the
application, and show the dialog
caffeine.exe xx
xx is a number which sets the number of seconds
between simulated keypresses. This must be the
first text on the commandline
caffeine.exe -noicon
Do not show the tray icon. Use either the above
-appexit switch to terminate the app, or just
kill the process in Task Manager
caffeine.exe -replace
Terminate the current running instance of Caffei
ne
and then take its place
caffeine.exe -useshift
Simulate the shift key rather than the right
context-menu key
caffeine.exe -showdlg
Display a dialog showing the current active stat
e of
Caffeine
caffeine.exe -ontaskbar
Show a task bar button
caffeine.exe -allowss
Prevent the computer from sleeping, but allow th
e screensaver
caffeine.exe -key:xx
Simulate using virtual key code xx - note that '
xx' is a decimal number
caffeine.exe -keypress
Simulate a full key press, not just a key up eve
nt
-------------------------------------------------------------------------------

Copyright Tom Revell, tom.revell@zhornsoftware.co.uk


Zhorn Software, http://www.zhornsoftware.co.uk/

You might also like