{"id":7,"date":"2024-02-03T04:05:25","date_gmt":"2024-02-03T04:05:25","guid":{"rendered":"https:\/\/shadysoftware.net\/?p=7"},"modified":"2024-02-03T04:05:25","modified_gmt":"2024-02-03T04:05:25","slug":"caffeine-free","status":"publish","type":"post","link":"https:\/\/shadysoftware.net\/?p=7","title":{"rendered":"Caffeine &#8211; FREE"},"content":{"rendered":"\n<p><a href=\"https:\/\/www.zhornsoftware.co.uk\/caffeine\/\">https:\/\/www.zhornsoftware.co.uk\/caffeine\/<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Prevent your computer from going to sleep<\/h3>\n\n\n\n<p>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&#8217;re still working at the keyboard, so won&#8217;t lock the screen or activate the screensaver.<\/p>\n\n\n<div class=\"wp-block-image is-style-default\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.zhornsoftware.co.uk\/caffeine\/tray.png\" alt=\"\"\/><\/figure><\/div>\n\n\n<p>The icon is shown above &#8211; it&#8217;s the leftmost one in the task tray, and this is all you see. Double-clicking the icon empties the coffee pot (that&#8217;s what the icon is) and temporarily disables the program. Double-clicking it again refills the pot, and will keep your machine awake.<\/p>\n\n\n\n<p>By default the app starts enabled, and works every 59 seconds. There are some command line switches you can use to alter this behaviour:<\/p>\n\n\n\n<ul>\n<li><code>xx<\/code>&nbsp;&#8211; where xx is a number which sets the number of seconds between simulated keypresses. This must be the first text on the commandline<\/li>\n\n\n\n<li><code>-startoff<\/code>&nbsp;&#8211; application starts disabled.<\/li>\n\n\n\n<li><code>-exitafter:xx<\/code>&nbsp;&#8211; application will terminate after xx minutes<\/li>\n\n\n\n<li><code>-activefor:xx<\/code>&nbsp;&#8211; application will become inactive after xx minutes<\/li>\n\n\n\n<li><code>-inactivefor:xx<\/code>&nbsp;&#8211; application will become active after xx minutes<\/li>\n\n\n\n<li><code>-appexit<\/code>&nbsp;&#8211; terminates current running instance of application<\/li>\n\n\n\n<li><code>-appon<\/code>&nbsp;&#8211; makes the current running instance of the application active<\/li>\n\n\n\n<li><code>-appoff<\/code>&nbsp;&#8211; makes the current running instance of the application inactive<\/li>\n\n\n\n<li><code>-apptoggle<\/code>&nbsp;&#8211; toggles the running state of the current running instance of the application<\/li>\n\n\n\n<li><code>-apptoggleshowdlg<\/code>&nbsp;&#8211; toggles the running state, and shows dialog<\/li>\n\n\n\n<li><code>-replace<\/code>&nbsp;&#8211; closes the current running instance, replacing it<\/li>\n\n\n\n<li><code>-noicon<\/code>&nbsp;&#8211; does not show a task tray icon<\/li>\n\n\n\n<li><code>-useshift<\/code>&nbsp;&#8211; simulate the shift key instead of F15<\/li>\n\n\n\n<li><code>-allowss<\/code>&nbsp;&#8211; prevent sleep, but allow the screensaver to start<\/li>\n\n\n\n<li><code>-stes<\/code>&nbsp;&#8211; tell Windows to stay awake, don&#8217;t use F15<\/li>\n\n\n\n<li><code>-showdlg<\/code>&nbsp;&#8211; shows a dialog indicating whether caffeine is active<\/li>\n\n\n\n<li><code>-ontaskbar<\/code>&nbsp;&#8211; show a task bar button (use with -showdlg)<\/li>\n\n\n\n<li><code>-key:xx<\/code>&nbsp;&#8211; simulate using&nbsp;<a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/windows\/desktop\/dd375731(v=vs.85).aspx\">virtual key code<\/a>&nbsp;xx<br>&nbsp;&nbsp;Note: the codes on the linked page are in Hex, convert them to decimal for use with this parameter<\/li>\n\n\n\n<li><code>-keypress<\/code>&nbsp;&#8211; simulate a full key press, not just a key up event<\/li>\n\n\n\n<li><code>-oldicons<\/code>&nbsp;&#8211; use more colourful tray icons<\/li>\n\n\n\n<li><code>-lighticons<\/code>&nbsp;&#8211; always use the light icons<\/li>\n\n\n\n<li><code>-darkicons<\/code>&nbsp;&#8211; always use the dark icons<\/li>\n\n\n\n<li><code>-watchwindow:xx<\/code>&nbsp;&#8211; active only when a window with xx in the title is found<\/li>\n\n\n\n<li><code>-activehours:........xxxxxxxx........<\/code>&nbsp;&#8211; put 24 . or x characters &#8211; which indicate from hour 0 to hour 23 of the day. Caffeine will be active only in hours with an x<\/li>\n\n\n\n<li><code>-onac<\/code>&nbsp;&#8211; active only when the computer is on AC power (plugged in)<\/li>\n\n\n\n<li><code>-cpu:xx<\/code>&nbsp;&#8211; active&nbsp;<em>until<\/em>&nbsp;the CPU drops below xx%<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/www.zhornsoftware.co.uk\/caffeine\/ Prevent your computer from going to sleep 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&#8217;re still working at the keyboard, so won&#8217;t lock the screen or activate the screensaver. The [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/shadysoftware.net\/index.php?rest_route=\/wp\/v2\/posts\/7"}],"collection":[{"href":"https:\/\/shadysoftware.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shadysoftware.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shadysoftware.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/shadysoftware.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7"}],"version-history":[{"count":1,"href":"https:\/\/shadysoftware.net\/index.php?rest_route=\/wp\/v2\/posts\/7\/revisions"}],"predecessor-version":[{"id":8,"href":"https:\/\/shadysoftware.net\/index.php?rest_route=\/wp\/v2\/posts\/7\/revisions\/8"}],"wp:attachment":[{"href":"https:\/\/shadysoftware.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shadysoftware.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shadysoftware.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}