{"id":21,"date":"2007-04-10T12:49:27","date_gmt":"2007-04-10T20:49:27","guid":{"rendered":"https:\/\/gotsteve.com\/blog\/?p=21"},"modified":"2018-12-14T11:18:43","modified_gmt":"2018-12-14T15:18:43","slug":"windows-auto-lock-and-screen-saver-being-annoying-no-access-to-change-it-try-this","status":"publish","type":"post","link":"https:\/\/www.gotsteve.com\/blog\/windows-auto-lock-and-screen-saver-being-annoying-no-access-to-change-it-try-this\/","title":{"rendered":"Disable Windows ScreenSaver Lock  No access to change it?  Try This: Fake \/ Faking Keyboard Activity"},"content":{"rendered":"<p><strong>Update Dec 2018:\u00a0<\/strong><\/p>\n<p>A colleague has pointed out a much more modern application called &#8220;Caffeine&#8221;, which sends a keypress every 59 seconds to ensure your machine does not go to sleep.\u00a0 \u00a0Worth a look:\u00a0\u00a0<a href=\"https:\/\/www.zhornsoftware.co.uk\/caffeine\/\">https:\/\/www.zhornsoftware.co.uk\/caffeine\/<\/a><\/p>\n<p><strong>Older post:<\/strong><\/p>\n<p>This is a great tool to make sure your laptop doesn&#8217;t automagically lock the screen (if you can&#8217;t make changes in the display settings (ie corporate laptop), making you have to authenticate 20 gazillion times a day&#8230;. however&#8230; also think of security when using it.. Make sure you lock your machine when you walk away from it!<\/p>\n<p><strong>Update: <\/strong>The link to the original content is dead now, but here is the historical info from the page, thanks to the web archive<\/p>\n<p><a title=\"https:\/\/web.archive.org\/web\/20070306093128\/https:\/\/kempele.fi\/~skyostil\/etc\/disable-screensaver.blog\/\" href=\"https:\/\/web.archive.org\/web\/20070306093128\/https:\/\/kempele.fi\/~skyostil\/etc\/disable-screensaver.blog\/\">https:\/\/web.archive.org\/web\/20070306093128\/https:\/\/kempele.fi\/~skyostil\/etc\/disable-screensaver.blog\/<\/a><\/p>\n<p>I have posted the .exe below for historical purposes.\u00a0 I know, a .exe is scary &#8211; but I will post what the code is doing in the .exe &#8211; which is basically submitting a keypress on your keyboard.<\/p>\n<p>Below is the file link &#8211; and here is the code (in python) :<\/p>\n<p>Here&#8217;s a tiny python script that will fake keyboard activity every five minutes in order to prevent a screen saver from activating.<\/p>\n<p>&#8220;&#8221;&#8221;Fake keyboard activity to prevent screen saver from activating.&#8221;&#8221;&#8221;<br \/>\nimport win32api<br \/>\nimport win32con<br \/>\nimport time<br \/>\nwhile True:<br \/>\nprint &#8220;Faking keyboard activity at&#8221;, time.asctime()<br \/>\nwin32api.keybd_event(win32con.VK_SHIFT, 0, 0, 0)<br \/>\nwin32api.keybd_event(win32con.VK_SHIFT, 0, win32con.KEYEVENTF_KEYUP, 0)<br \/>\ntime.sleep(60 * 5)<\/p>\n<p><a href=\"https:\/\/www.gotsteve.com\/blog\/wp-content\/uploads\/2008\/09\/disable-screensaver.exe\">Download disable-screensaver.exe<\/a><\/p>\n<p>or, for those blocked from downloading executables &#8211; a zip:<\/p>\n<p><a href=\"https:\/\/www.gotsteve.com\/blog\/wp-content\/uploads\/2008\/09\/disable-screensaver.zip\">Download disable-screensaver.zip<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Update Dec 2018:\u00a0 A colleague has pointed out a much more modern application called &#8220;Caffeine&#8221;, which sends a keypress every 59 seconds to ensure your machine does not go to sleep.\u00a0 \u00a0Worth a look:\u00a0\u00a0https:\/\/www.zhornsoftware.co.uk\/caffeine\/ Older post: This is a great tool to make sure your laptop doesn&#8217;t automagically lock the screen (if you can&#8217;t make&hellip; <a class=\"more-link\" href=\"https:\/\/www.gotsteve.com\/blog\/windows-auto-lock-and-screen-saver-being-annoying-no-access-to-change-it-try-this\/\">Continue reading <span class=\"screen-reader-text\">Disable Windows ScreenSaver Lock  No access to change it?  Try This: Fake \/ Faking Keyboard Activity<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-21","post","type-post","status-publish","format-standard","hentry","category-computers","entry"],"_links":{"self":[{"href":"https:\/\/www.gotsteve.com\/blog\/wp-json\/wp\/v2\/posts\/21","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gotsteve.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gotsteve.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gotsteve.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gotsteve.com\/blog\/wp-json\/wp\/v2\/comments?post=21"}],"version-history":[{"count":0,"href":"https:\/\/www.gotsteve.com\/blog\/wp-json\/wp\/v2\/posts\/21\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.gotsteve.com\/blog\/wp-json\/wp\/v2\/media?parent=21"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gotsteve.com\/blog\/wp-json\/wp\/v2\/categories?post=21"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gotsteve.com\/blog\/wp-json\/wp\/v2\/tags?post=21"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}