{"id":6744,"date":"2021-02-13T12:10:36","date_gmt":"2021-02-13T12:10:36","guid":{"rendered":"https:\/\/max-drake.cc\/?p=6744"},"modified":"2021-02-13T12:11:47","modified_gmt":"2021-02-13T12:11:47","slug":"ahks-how-to-remember-all-your-commands-and-scripts-ahkcommandpicker","status":"publish","type":"post","link":"https:\/\/max-drake.cc\/?p=6744","title":{"rendered":"AHK&#8217;s how to remember all your commands and scripts? AHKCommandPicker"},"content":{"rendered":"\n<p>I&#8217;ve had a few AHK hotkeys that I&#8217;ve used for ages, and don&#8217;t have to think about remembering them, but now that I&#8217;ve been developing new scripts I&#8217;ve started having issues with remembering them. So I&#8217;ve been through a few processes.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Pop-up Help MessageBox <\/h4>\n\n\n\n<p>This was my first attempt at keepinmg a record, having a help pop-up box assigned to a hotkey (that you also have to remember) that would show what keys you&#8217;ve mapped to: <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"604\" height=\"1024\" data-src=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/02\/2021-02-14-12_43_14-Add-New-Post-\u2039-Vast-\u2014-WordPress-\u2014-Mozilla-Firefox-604x1024.jpg\" alt=\"\" class=\"wp-image-6745 lazyload\" data-srcset=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/02\/2021-02-14-12_43_14-Add-New-Post-\u2039-Vast-\u2014-WordPress-\u2014-Mozilla-Firefox-604x1024.jpg 604w, https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/02\/2021-02-14-12_43_14-Add-New-Post-\u2039-Vast-\u2014-WordPress-\u2014-Mozilla-Firefox-177x300.jpg 177w, https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/02\/2021-02-14-12_43_14-Add-New-Post-\u2039-Vast-\u2014-WordPress-\u2014-Mozilla-Firefox-50x85.jpg 50w, https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/02\/2021-02-14-12_43_14-Add-New-Post-\u2039-Vast-\u2014-WordPress-\u2014-Mozilla-Firefox-29x50.jpg 29w, https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/02\/2021-02-14-12_43_14-Add-New-Post-\u2039-Vast-\u2014-WordPress-\u2014-Mozilla-Firefox-100x170.jpg 100w, https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/02\/2021-02-14-12_43_14-Add-New-Post-\u2039-Vast-\u2014-WordPress-\u2014-Mozilla-Firefox-59x100.jpg 59w, https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/02\/2021-02-14-12_43_14-Add-New-Post-\u2039-Vast-\u2014-WordPress-\u2014-Mozilla-Firefox-378x640.jpg 378w, https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/02\/2021-02-14-12_43_14-Add-New-Post-\u2039-Vast-\u2014-WordPress-\u2014-Mozilla-Firefox-640x1085.jpg 640w, https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/02\/2021-02-14-12_43_14-Add-New-Post-\u2039-Vast-\u2014-WordPress-\u2014-Mozilla-Firefox-453x768.jpg 453w, https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/02\/2021-02-14-12_43_14-Add-New-Post-\u2039-Vast-\u2014-WordPress-\u2014-Mozilla-Firefox-637x1080.jpg 637w, https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/02\/2021-02-14-12_43_14-Add-New-Post-\u2039-Vast-\u2014-WordPress-\u2014-Mozilla-Firefox.jpg 663w\" data-sizes=\"(max-width: 604px) 100vw, 604px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 604px; --smush-placeholder-aspect-ratio: 604\/1024;\" \/><\/figure>\n\n\n\n<p>Sort of OK, but you have to keep editing the text in the popup to add new keys<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Keep popular ones in one file and have a menu for ones you don&#8217;t use that frequently. <\/h4>\n\n\n\n<p>This second method hd merits. Yo9u had your standard hotkey file with all the ones you used regularly, and made a pop-up for ones that were useful and you&#8217;d only use them intermittently. So you&#8217;d use a button or number to activate them from a list, the one below is triggered by the F1 key to pop it up. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"757\" height=\"547\" data-src=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/02\/2021-02-14-12_49_40-Add-New-Post-\u2039-Vast-\u2014-WordPress-\u2014-Mozilla-Firefox.jpg\" alt=\"\" class=\"wp-image-6747 lazyload\" data-srcset=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/02\/2021-02-14-12_49_40-Add-New-Post-\u2039-Vast-\u2014-WordPress-\u2014-Mozilla-Firefox.jpg 757w, https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/02\/2021-02-14-12_49_40-Add-New-Post-\u2039-Vast-\u2014-WordPress-\u2014-Mozilla-Firefox-300x217.jpg 300w, https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/02\/2021-02-14-12_49_40-Add-New-Post-\u2039-Vast-\u2014-WordPress-\u2014-Mozilla-Firefox-50x36.jpg 50w, https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/02\/2021-02-14-12_49_40-Add-New-Post-\u2039-Vast-\u2014-WordPress-\u2014-Mozilla-Firefox-69x50.jpg 69w, https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/02\/2021-02-14-12_49_40-Add-New-Post-\u2039-Vast-\u2014-WordPress-\u2014-Mozilla-Firefox-100x72.jpg 100w, https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/02\/2021-02-14-12_49_40-Add-New-Post-\u2039-Vast-\u2014-WordPress-\u2014-Mozilla-Firefox-138x100.jpg 138w, https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/02\/2021-02-14-12_49_40-Add-New-Post-\u2039-Vast-\u2014-WordPress-\u2014-Mozilla-Firefox-640x462.jpg 640w\" data-sizes=\"(max-width: 757px) 100vw, 757px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 757px; --smush-placeholder-aspect-ratio: 757\/547;\" \/><\/figure>\n\n\n\n<p>This had merits in that if you used one of the items regularly, you could move it across to your main Hotkey file and so you&#8217;d only have to learn one new Hotykey at a time. <\/p>\n\n\n\n<p>Also, for the ones that you used less frequently, you could have a Hover Tooltip to explain what a particular script did. So this could sit in the background and be called up when you wanted it. <\/p>\n\n\n\n<h4 class=\"wp-block-heading\">AHK Command Picker<\/h4>\n\n\n\n<p>I then came across <strong><a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/deadlydog\/AHKCommandPicker\" target=\"_blank\">AHK Command Picker<\/a><\/strong> by Daniel Schroeder and he has some video&#8217;s on its usage:<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"AHK Command Picker - Get started in under 2 minutes\" width=\"678\" height=\"381\" data-src=\"https:\/\/www.youtube.com\/embed\/gevnQAwYLAg?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" data-load-mode=\"1\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"AHK Command Picker - Out of the box functionality\" width=\"678\" height=\"381\" data-src=\"https:\/\/www.youtube.com\/embed\/kr5nBVOXVkE?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" data-load-mode=\"1\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>And an explanation on why he built it:<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"AHK Command Picker - Motivation to create AutoHotkey Command Picker\" width=\"678\" height=\"381\" data-src=\"https:\/\/www.youtube.com\/embed\/E0LnMtWVVuA?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" data-load-mode=\"1\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>To me, this is a great tool. It was the destination where I was being led to. It allows you to have an AHK HotKey file loaded with the HotKey&#8217;s you use all the time, and also a search list of others that you either use intermittently or do not want to be initiated by a hotkey. <\/p>\n\n\n\n<p>I think his naming convention is a bit long, and I&#8217;ll explore ways of styling it to my needs , but I think its a fantastic tool for keeping all your scripts in one place and accessible by using the  CapsLock key, that is a very nice way to access the menu. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"618\" data-src=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/02\/2021-02-14-13_09_19-Add-New-Post-\u2039-Vast-\u2014-WordPress-\u2014-Mozilla-Firefox-1024x618.jpg\" alt=\"\" class=\"wp-image-6748 lazyload\" data-srcset=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/02\/2021-02-14-13_09_19-Add-New-Post-\u2039-Vast-\u2014-WordPress-\u2014-Mozilla-Firefox-1024x618.jpg 1024w, https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/02\/2021-02-14-13_09_19-Add-New-Post-\u2039-Vast-\u2014-WordPress-\u2014-Mozilla-Firefox-300x181.jpg 300w, https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/02\/2021-02-14-13_09_19-Add-New-Post-\u2039-Vast-\u2014-WordPress-\u2014-Mozilla-Firefox-768x464.jpg 768w, https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/02\/2021-02-14-13_09_19-Add-New-Post-\u2039-Vast-\u2014-WordPress-\u2014-Mozilla-Firefox-50x30.jpg 50w, https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/02\/2021-02-14-13_09_19-Add-New-Post-\u2039-Vast-\u2014-WordPress-\u2014-Mozilla-Firefox-83x50.jpg 83w, https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/02\/2021-02-14-13_09_19-Add-New-Post-\u2039-Vast-\u2014-WordPress-\u2014-Mozilla-Firefox-100x60.jpg 100w, https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/02\/2021-02-14-13_09_19-Add-New-Post-\u2039-Vast-\u2014-WordPress-\u2014-Mozilla-Firefox-166x100.jpg 166w, https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/02\/2021-02-14-13_09_19-Add-New-Post-\u2039-Vast-\u2014-WordPress-\u2014-Mozilla-Firefox-1060x640.jpg 1060w, https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/02\/2021-02-14-13_09_19-Add-New-Post-\u2039-Vast-\u2014-WordPress-\u2014-Mozilla-Firefox-640x386.jpg 640w, https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/02\/2021-02-14-13_09_19-Add-New-Post-\u2039-Vast-\u2014-WordPress-\u2014-Mozilla-Firefox.jpg 1153w\" data-sizes=\"(max-width: 1024px) 100vw, 1024px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/618;\" \/><\/figure>\n\n\n\n<p>His method of structuring the files is well thought out too. One issue I seem to be having across my pc&#8217;s is the<strong> #include <\/strong>for pulling in other files. I have to make sure it has the:<\/p>\n\n\n\n<p><strong>#include\u00a0%A_ScriptDir%\u00a0<\/strong><\/p>\n\n\n\n<p>before calling any other #include as some of my pc&#8217;s start looking in windows directory so cannot find the files. <\/p>\n\n\n\n<p>This tool is great in that you do not need lots of separate  scripts running in the Task Tray, as this manages most of them. There are a couple I may need to start up separately, AutoCorrect &amp; CursorHighlighter, but my main Keys.ahk can be combined in with the main programme. <\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Setting up. <\/h4>\n\n\n\n<p>The first time I tried to add some of my scripts to the programme I stuffed it up, and I found that after I followed the first video as to the method, its all worked fine since then and I&#8217;ve been moving my scripts across quite easily. <\/p>\n\n\n\n<p>You can have personal and office ones and just comment out the ones that you want, where you want via the #include list in the <strong>CommandScriptsToInclude.ahk<\/strong> file. A well thought out process. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">End comment<\/h3>\n\n\n\n<p>This has been a useful progression from the initial idea of trying to remember hotkeys for too many functions to being able to load\/ drop scripts and access ones quickly whilst still keeping your favorite hotkeys active. Thank you Daniel Schroeder for sharing such a useful programme. I personally really appreciate it. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve had a few AHK hotkeys that I&#8217;ve used for ages, and don&#8217;t have to think about remembering them, but now that I&#8217;ve been developing new scripts I&#8217;ve started having issues with remembering them. So I&#8217;ve been through a few processes. Pop-up Help MessageBox This was my first attempt at keepinmg a record, having a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":6748,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[204,42],"tags":[],"class_list":["post-6744","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-automation","category-productivity"],"featured_image_src":"https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/02\/2021-02-14-13_09_19-Add-New-Post-\u2039-Vast-\u2014-WordPress-\u2014-Mozilla-Firefox-600x400.jpg","featured_image_src_square":"https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/02\/2021-02-14-13_09_19-Add-New-Post-\u2039-Vast-\u2014-WordPress-\u2014-Mozilla-Firefox-600x600.jpg","author_info":{"display_name":"Max Drake","author_link":"https:\/\/max-drake.cc\/?author=1"},"_links":{"self":[{"href":"https:\/\/max-drake.cc\/index.php?rest_route=\/wp\/v2\/posts\/6744","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/max-drake.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/max-drake.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/max-drake.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/max-drake.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6744"}],"version-history":[{"count":0,"href":"https:\/\/max-drake.cc\/index.php?rest_route=\/wp\/v2\/posts\/6744\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/max-drake.cc\/index.php?rest_route=\/wp\/v2\/media\/6748"}],"wp:attachment":[{"href":"https:\/\/max-drake.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6744"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/max-drake.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6744"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/max-drake.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6744"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}