{"id":4625,"date":"2018-02-09T23:01:52","date_gmt":"2018-02-09T23:01:52","guid":{"rendered":"http:\/\/www.hexacorn.com\/blog\/?p=4625"},"modified":"2018-02-09T23:11:28","modified_gmt":"2018-02-09T23:11:28","slug":"beyond-good-ol-run-key-part-72","status":"publish","type":"post","link":"https:\/\/www.hexacorn.com\/blog\/2018\/02\/09\/beyond-good-ol-run-key-part-72\/","title":{"rendered":"Beyond good ol\u2019 Run key, Part 72"},"content":{"rendered":"<p>In my old <a href=\"https:\/\/www.hexacorn.com\/blog\/2015\/03\/13\/beyond-good-ol-run-key-part-29\/\">post<\/a> I described a simple trick that shows how to set up a hot key that can be assigned to execute shortcuts (.LNK files) placed on a Desktop or in a Start Menu. This action survives reboots and logon\/logoffs so it&#8217;s a nice, and somehow accidental persistence mechanism.<\/p>\n<p>Turns out there is one more variant of this trick that relies on using the .URL files.<\/p>\n<p>Placing a .URL files containing the following data:<\/p>\n<pre>[InternetShortcut]\r\nURL=file:\/\/\/c:\/windows\/system32\/calc.exe\r\nHotKey=768<\/pre>\n<p>on a Desktop will assign CTRL+SHIFT sequence to an action that will trigger the execution of the calculator.<\/p>\n<p>The Hotkey can be assigned either manually (via properties):<\/p>\n<p><a href=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2018\/02\/url_hotkey1.png\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-4626\" src=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2018\/02\/url_hotkey1.png\" alt=\"\" width=\"377\" height=\"515\" srcset=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2018\/02\/url_hotkey1.png 377w, https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2018\/02\/url_hotkey1-220x300.png 220w\" sizes=\"(max-width: 377px) 100vw, 377px\" \/><\/a>&#8211; in such case you won&#8217;t be able to assign the more trickier combinations like CTRL+SHIFT. Or we can do it manually, and in such case all the hotkey tricks are available. All you have to do is to assign a proper value to the HotKey parameter inside the .url file.<\/p>\n<p>You can find out what values represent what codes or by experimenting&#8230; or&#8230; you can cheat and read this old guide: <a href=\"http:\/\/www.lyberty.com\/encyc\/articles\/tech\/dot_url_format_-_an_unofficial_guide.html\">An Unofficial Guide to the URL File Format<\/a>.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In my old post I described a simple trick that shows how to set up a hot key that can be assigned to execute shortcuts (.LNK files) placed on a Desktop or in a Start Menu. This action survives reboots &hellip; <a href=\"https:\/\/www.hexacorn.com\/blog\/2018\/02\/09\/beyond-good-ol-run-key-part-72\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[43,13,35,15,19,46,9],"tags":[],"_links":{"self":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/4625"}],"collection":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/comments?post=4625"}],"version-history":[{"count":3,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/4625\/revisions"}],"predecessor-version":[{"id":4629,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/4625\/revisions\/4629"}],"wp:attachment":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/media?parent=4625"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/categories?post=4625"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/tags?post=4625"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}