{"id":243,"date":"2009-05-05T23:43:53","date_gmt":"2009-05-06T04:43:53","guid":{"rendered":"https:\/\/blog.cedeq.com\/?p=243"},"modified":"2024-02-16T20:14:18","modified_gmt":"2024-02-16T20:14:18","slug":"autohotkey-one-click-auto-shutdown","status":"publish","type":"post","link":"https:\/\/blog.cedeq.com\/autohotkey-one-click-auto-shutdown\/","title":{"rendered":"AutoHotkey – One-Click Auto Shutdown"},"content":{"rendered":"\n

Wouldn\u2019t it be nice if you could shut-down your computer safely like a light bulb \u2013 at the press of a button?<\/p>\n\n\n\n

Have you ever had to wait in front of your computer before it shuts down? Once it starts closing all background applications, open windows and other things you don\u2019t even know about, it takes a long while before it finally stops.<\/p>\n\n\n\n

There is a DOS command that can execute a complete stop: the shutdown<\/code> command. Some parameters can be added to it, but for the purpose, let\u2019s stay with the essentials to force you computer to shut down:<\/p>\n\n\n\n

shutdown \u2013s \u2013f \u2013t 0<\/code><\/p>\n\n\n\n

It is easy to put it into AutoHotkey to make it done automatically. However, if you do so, all current applications will close without warning, and you may lose unsaved data. Therefore, I added a simple message box to prompt just before proceeding:<\/p>\n\n\n\n

MsgBox, 52, Warning, Computer will shut down. Proceed?
\nIfMsgBox, Yes, run, shutdown -s -f -t 0
\nReturn<\/code><\/p>\n\n\n\n

If you click the \u201cYes\u201d button, the computer will not ask and will make a complete stop. There is now an \u201cOFF\u201d key on my Enterpad that helps me leave my computer station as fast as possible!<\/p>\n\n\n\n

Edmond<\/p>\n","protected":false},"excerpt":{"rendered":"

Wouldn\u2019t it be nice if you could shut-down your computer safely like a light bulb \u2013 at the press of a button? Have you ever had to wait in front of your computer before it shuts down? Once it starts closing all background applications, open windows and other things you don\u2019t even know about, it … Read more<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"yoast_head":"\nAutoHotkey - One-Click Auto Shutdown - blog.cedeq.com<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/blog.cedeq.com\/autohotkey-one-click-auto-shutdown\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"AutoHotkey - One-Click Auto Shutdown - blog.cedeq.com\" \/>\n<meta property=\"og:description\" content=\"Wouldn\u2019t it be nice if you could shut-down your computer safely like a light bulb \u2013 at the press of a button? Have you ever had to wait in front of your computer before it shuts down? Once it starts closing all background applications, open windows and other things you don\u2019t even know about, it ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blog.cedeq.com\/autohotkey-one-click-auto-shutdown\/\" \/>\n<meta property=\"og:site_name\" content=\"blog.cedeq.com\" \/>\n<meta property=\"article:published_time\" content=\"2009-05-06T04:43:53+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-02-16T20:14:18+00:00\" \/>\n<meta name=\"author\" content=\"epelletier\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"epelletier\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/blog.cedeq.com\/autohotkey-one-click-auto-shutdown\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/blog.cedeq.com\/autohotkey-one-click-auto-shutdown\/\"},\"author\":{\"name\":\"epelletier\",\"@id\":\"https:\/\/blog.cedeq.com\/#\/schema\/person\/7e721287faf26c00758494706daed297\"},\"headline\":\"AutoHotkey – One-Click Auto Shutdown\",\"datePublished\":\"2009-05-06T04:43:53+00:00\",\"dateModified\":\"2024-02-16T20:14:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/blog.cedeq.com\/autohotkey-one-click-auto-shutdown\/\"},\"wordCount\":187,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/blog.cedeq.com\/#organization\"},\"articleSection\":[\"AutoHotkey\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/blog.cedeq.com\/autohotkey-one-click-auto-shutdown\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/blog.cedeq.com\/autohotkey-one-click-auto-shutdown\/\",\"url\":\"https:\/\/blog.cedeq.com\/autohotkey-one-click-auto-shutdown\/\",\"name\":\"AutoHotkey - One-Click Auto Shutdown - blog.cedeq.com\",\"isPartOf\":{\"@id\":\"https:\/\/blog.cedeq.com\/#website\"},\"datePublished\":\"2009-05-06T04:43:53+00:00\",\"dateModified\":\"2024-02-16T20:14:18+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/blog.cedeq.com\/autohotkey-one-click-auto-shutdown\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/blog.cedeq.com\/autohotkey-one-click-auto-shutdown\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/blog.cedeq.com\/autohotkey-one-click-auto-shutdown\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/blog.cedeq.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"AutoHotkey – One-Click Auto Shutdown\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/blog.cedeq.com\/#website\",\"url\":\"https:\/\/blog.cedeq.com\/\",\"name\":\"blog.cedeq.com\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/blog.cedeq.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/blog.cedeq.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/blog.cedeq.com\/#organization\",\"name\":\"Cedeq Inc\",\"url\":\"https:\/\/blog.cedeq.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/blog.cedeq.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/blog.cedeq.com\/wp-content\/uploads\/2024\/01\/LogoCedeq125.png\",\"contentUrl\":\"https:\/\/blog.cedeq.com\/wp-content\/uploads\/2024\/01\/LogoCedeq125.png\",\"width\":125,\"height\":27,\"caption\":\"Cedeq Inc\"},\"image\":{\"@id\":\"https:\/\/blog.cedeq.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/blog.cedeq.com\/#\/schema\/person\/7e721287faf26c00758494706daed297\",\"name\":\"epelletier\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/blog.cedeq.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6873900770ddd5e893c83197b7dcf3b3?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6873900770ddd5e893c83197b7dcf3b3?s=96&d=mm&r=g\",\"caption\":\"epelletier\"},\"url\":\"https:\/\/blog.cedeq.com\/author\/epelletier\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"AutoHotkey - One-Click Auto Shutdown - blog.cedeq.com","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/blog.cedeq.com\/autohotkey-one-click-auto-shutdown\/","og_locale":"en_US","og_type":"article","og_title":"AutoHotkey - One-Click Auto Shutdown - blog.cedeq.com","og_description":"Wouldn\u2019t it be nice if you could shut-down your computer safely like a light bulb \u2013 at the press of a button? Have you ever had to wait in front of your computer before it shuts down? Once it starts closing all background applications, open windows and other things you don\u2019t even know about, it ... Read more","og_url":"https:\/\/blog.cedeq.com\/autohotkey-one-click-auto-shutdown\/","og_site_name":"blog.cedeq.com","article_published_time":"2009-05-06T04:43:53+00:00","article_modified_time":"2024-02-16T20:14:18+00:00","author":"epelletier","twitter_card":"summary_large_image","twitter_misc":{"Written by":"epelletier","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/blog.cedeq.com\/autohotkey-one-click-auto-shutdown\/#article","isPartOf":{"@id":"https:\/\/blog.cedeq.com\/autohotkey-one-click-auto-shutdown\/"},"author":{"name":"epelletier","@id":"https:\/\/blog.cedeq.com\/#\/schema\/person\/7e721287faf26c00758494706daed297"},"headline":"AutoHotkey – One-Click Auto Shutdown","datePublished":"2009-05-06T04:43:53+00:00","dateModified":"2024-02-16T20:14:18+00:00","mainEntityOfPage":{"@id":"https:\/\/blog.cedeq.com\/autohotkey-one-click-auto-shutdown\/"},"wordCount":187,"commentCount":0,"publisher":{"@id":"https:\/\/blog.cedeq.com\/#organization"},"articleSection":["AutoHotkey"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/blog.cedeq.com\/autohotkey-one-click-auto-shutdown\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/blog.cedeq.com\/autohotkey-one-click-auto-shutdown\/","url":"https:\/\/blog.cedeq.com\/autohotkey-one-click-auto-shutdown\/","name":"AutoHotkey - One-Click Auto Shutdown - blog.cedeq.com","isPartOf":{"@id":"https:\/\/blog.cedeq.com\/#website"},"datePublished":"2009-05-06T04:43:53+00:00","dateModified":"2024-02-16T20:14:18+00:00","breadcrumb":{"@id":"https:\/\/blog.cedeq.com\/autohotkey-one-click-auto-shutdown\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.cedeq.com\/autohotkey-one-click-auto-shutdown\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/blog.cedeq.com\/autohotkey-one-click-auto-shutdown\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/blog.cedeq.com\/"},{"@type":"ListItem","position":2,"name":"AutoHotkey – One-Click Auto Shutdown"}]},{"@type":"WebSite","@id":"https:\/\/blog.cedeq.com\/#website","url":"https:\/\/blog.cedeq.com\/","name":"blog.cedeq.com","description":"","publisher":{"@id":"https:\/\/blog.cedeq.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blog.cedeq.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/blog.cedeq.com\/#organization","name":"Cedeq Inc","url":"https:\/\/blog.cedeq.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/blog.cedeq.com\/#\/schema\/logo\/image\/","url":"https:\/\/blog.cedeq.com\/wp-content\/uploads\/2024\/01\/LogoCedeq125.png","contentUrl":"https:\/\/blog.cedeq.com\/wp-content\/uploads\/2024\/01\/LogoCedeq125.png","width":125,"height":27,"caption":"Cedeq Inc"},"image":{"@id":"https:\/\/blog.cedeq.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/blog.cedeq.com\/#\/schema\/person\/7e721287faf26c00758494706daed297","name":"epelletier","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/blog.cedeq.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6873900770ddd5e893c83197b7dcf3b3?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6873900770ddd5e893c83197b7dcf3b3?s=96&d=mm&r=g","caption":"epelletier"},"url":"https:\/\/blog.cedeq.com\/author\/epelletier\/"}]}},"_links":{"self":[{"href":"https:\/\/blog.cedeq.com\/wp-json\/wp\/v2\/posts\/243"}],"collection":[{"href":"https:\/\/blog.cedeq.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.cedeq.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.cedeq.com\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.cedeq.com\/wp-json\/wp\/v2\/comments?post=243"}],"version-history":[{"count":1,"href":"https:\/\/blog.cedeq.com\/wp-json\/wp\/v2\/posts\/243\/revisions"}],"predecessor-version":[{"id":1096,"href":"https:\/\/blog.cedeq.com\/wp-json\/wp\/v2\/posts\/243\/revisions\/1096"}],"wp:attachment":[{"href":"https:\/\/blog.cedeq.com\/wp-json\/wp\/v2\/media?parent=243"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.cedeq.com\/wp-json\/wp\/v2\/categories?post=243"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.cedeq.com\/wp-json\/wp\/v2\/tags?post=243"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}