{"id":1622,"date":"2019-02-17T00:00:00","date_gmt":"2019-02-16T23:00:00","guid":{"rendered":"https:\/\/demo.sidekick.be\/itenium\/autohotkey-dyna-run\/"},"modified":"2025-11-28T13:31:45","modified_gmt":"2025-11-28T12:31:45","slug":"autohotkey-dyna-run","status":"publish","type":"post","link":"https:\/\/demo.sidekick.be\/itenium\/blog\/productivity\/autohotkey-dyna-run\/","title":{"rendered":"Autohotkey DynaRun"},"content":{"rendered":"<h1 id=\"some-autohotkey-blog-posts\">Some Autohotkey blog posts<\/h1>\n<p>Some blog posts that have Autohotkey scripts for you to test out right away!<\/p>\n<p><!-- []({percent post_url 2019-01-31-autohotkey-use-case percent}) --><!-- Jekyll Deprecation warnings: Apparently open issue on Github (auto closed) when working with subdirectories in _posts --><!-- And didn't build on Github pages? --><\/p>\n<ul>\n<li><a href=\"\/blog\/productivity\/autohotkey-use-case\">Fill in an entire form with a few keystrokes<\/a><\/li>\n<li><a href=\"\/blog\/productivity\/advanced-windows-explorer\">Customize Windows Explorer<\/a><\/li>\n<li><a href=\"\/blog\/productivity\/autohotkey-hotkeys\">Hotkeys tutorial<\/a><\/li>\n<\/ul>\n<h1 id=\"the-dynarun-script\">The DynaRun script<\/h1>\n<p>Select an Autohotkey script and press <code>Capslock + F5<\/code><\/p>\n<pre><code class=\"language-autohotkey\">lastDynaRun :=\n\n\nCAPSLOCK &amp; F5::\nClipboard =\nSend, ^c\nClipWait, 3\n\n\ndynaRunName = Dynarun\nif (lastDynaRun) {\n    Process, Exist, %lastDynaRun%\n    if (ErrorLevel &gt; 0) {\n        MsgBox, 4, Existing DynaRun, Replace last DynaRun?`nYes: Replace instance.`nNo: New instance., 1\n        IfMsgBox, No\n        {\n            Random, rnd, 1, 100\n            dynaRunName .= rnd\n        }\n        else\n        {\n            Process, Close, %lastDynaRun%\n        }\n    }\n}\n\nlastDynaRun := DynaRun(clipboard, dynaRunName)\nreturn\n\n\nDynaRun(TempScript, pipename=\"\")\n{\n   static _:=\"uint\",@:=\"Ptr\"\n   If pipename =\n      name := \"AHK\" A_TickCount\n   Else\n      name := pipename\n   __PIPE_GA_ := DllCall(\"CreateNamedPipe\",\"str\",\"\\.pipe\" name,_,2,_,0,_,255,_,0,_,0,@,0,@,0)\n   __PIPE_    := DllCall(\"CreateNamedPipe\",\"str\",\"\\.pipe\" name,_,2,_,0,_,255,_,0,_,0,@,0,@,0)\n   if (__PIPE_=-1 or __PIPE_GA_=-1)\n      Return 0\n   Run, %A_AhkPath% \"\\.pipe%name%\",,UseErrorLevel HIDE, PID\n   If ErrorLevel\n      MsgBox, 262144, ERROR,% \"Could not open file:`n\" __AHK_EXE_ \"\"\"\\.pipe\" name \"\"\"\"\n   DllCall(\"ConnectNamedPipe\",@,__PIPE_GA_,@,0)\n   DllCall(\"CloseHandle\",@,__PIPE_GA_)\n   DllCall(\"ConnectNamedPipe\",@,__PIPE_,@,0)\n   script := (A_IsUnicode ? chr(0xfeff) : (chr(239) . chr(187) . chr(191))) TempScript\n   if !DllCall(\"WriteFile\",@,__PIPE_,\"str\",script,_,(StrLen(script)+1)*(A_IsUnicode ? 2 : 1),_ \"*\",0,@,0)\n        Return A_LastError,DllCall(\"CloseHandle\",@,__PIPE_)\n   DllCall(\"CloseHandle\",@,__PIPE_)\n   Return PID\n}\n<\/code><\/pre>\n<p>Or download <a href=\"\/assets\/blog-images\/autohotkey-dyna-run-capslock-f5.ahk\">dyna-run-capslock-f5.ahk<\/a><\/p>\n<p><!-- This block exists three times: autohotkey-dyna-run.md, autohotkey-use-case.md and autohotkey-login-form.html --><!-- ATTN: Some slight variations in install instructions!--><\/p>\n<h1 id=\"installing-the-script\">Installing the script<\/h1>\n<ul>\n<li>Download and <a href=\"https:\/\/www.autohotkey.com\/download\">install Autohotkey<\/a> (Pick Autohotkey 1.1)<\/li>\n<li>Create a file with the extension <strong>ahk<\/strong><\/li>\n<li>Paste the Autohotkey code from above in the file<\/li>\n<li>Double click your newly created file to activate the script<\/li>\n<li>Select some Authotkey text and press <code>Capslock + F5<\/code><\/li>\n<\/ul>\n<h2 id=\"to-start-with-windows\">To start with Windows<\/h2>\n<p>To start your Autohotkey script with Windows put a file shortcut in your startup folder.<\/p>\n<p>To get to this directory:<\/p>\n<ul>\n<li>Press <code>Windows + E<\/code><\/li>\n<li>Press <code>Control + L<\/code><\/li>\n<li>Type <code>shell:startup<\/code><\/li>\n<li>Press <code>Enter<\/code><\/li>\n<\/ul>\n<p>Usually something like:<\/p>\n<p><code>C:Usersyour_user_nameAppDataRoamingMicrosoftWindowsStart MenuProgramsStartup<\/code><\/p>\n<p>With <code>your_user_name<\/code>: <code>$env:USERNAME<\/code> (PS1) or <code>%USERNAME%<\/code> (CMD)<\/p>\n<h1 id=\"mega-test-script\">Mega test script<\/h1>\n<pre><code class=\"language-autohotkey\">MsgBox Will it work?\n<\/code><\/pre>\n<h1>Extras<\/h1>\n<p><b>Stuff that came into being during the making of this post<\/b><\/p>\n<ul>\n<li><a href=\"\/assets\/blog-images\/autohotkey-dyna-run-capslock-f5.ahk\">autohotkey-dyna-run-capslock-f5.ahk<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Run any Autohotkey script on the web with a single.. Autohotkey hotkey.<\/p>\n","protected":false},"author":1,"featured_media":2093,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[19],"tags":[36],"class_list":["post-1622","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-productivity","tag-autohotkey"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Autohotkey DynaRun - Itenium<\/title>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Autohotkey DynaRun - Itenium\" \/>\n<meta property=\"og:description\" content=\"Run any Autohotkey script on the web with a single.. Autohotkey hotkey.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/demo.sidekick.be\/itenium\/blog\/productivity\/autohotkey-dyna-run\/\" \/>\n<meta property=\"og:site_name\" content=\"Itenium\" \/>\n<meta property=\"article:published_time\" content=\"2019-02-16T23:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-11-28T12:31:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/demo.sidekick.be\/itenium\/wp-content\/uploads\/2025\/11\/autohotkey-dyna-run.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"360\" \/>\n\t<meta property=\"og:image:height\" content=\"300\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Usdevelop\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Usdevelop\" \/>\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\":\"WebPage\",\"@id\":\"https:\/\/demo.sidekick.be\/itenium\/blog\/productivity\/autohotkey-dyna-run\/\",\"url\":\"https:\/\/demo.sidekick.be\/itenium\/blog\/productivity\/autohotkey-dyna-run\/\",\"name\":\"Autohotkey DynaRun - Itenium\",\"isPartOf\":{\"@id\":\"https:\/\/demo.sidekick.be\/itenium\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/demo.sidekick.be\/itenium\/blog\/productivity\/autohotkey-dyna-run\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/demo.sidekick.be\/itenium\/blog\/productivity\/autohotkey-dyna-run\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/demo.sidekick.be\/itenium\/wp-content\/uploads\/2025\/11\/autohotkey-dyna-run.jpg\",\"datePublished\":\"2019-02-16T23:00:00+00:00\",\"dateModified\":\"2025-11-28T12:31:45+00:00\",\"author\":{\"@id\":\"https:\/\/demo.sidekick.be\/itenium\/#\/schema\/person\/6ab401ce01e858184ee4a8667fe0f022\"},\"breadcrumb\":{\"@id\":\"https:\/\/demo.sidekick.be\/itenium\/blog\/productivity\/autohotkey-dyna-run\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/demo.sidekick.be\/itenium\/blog\/productivity\/autohotkey-dyna-run\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/demo.sidekick.be\/itenium\/blog\/productivity\/autohotkey-dyna-run\/#primaryimage\",\"url\":\"https:\/\/demo.sidekick.be\/itenium\/wp-content\/uploads\/2025\/11\/autohotkey-dyna-run.jpg\",\"contentUrl\":\"https:\/\/demo.sidekick.be\/itenium\/wp-content\/uploads\/2025\/11\/autohotkey-dyna-run.jpg\",\"width\":360,\"height\":300},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/demo.sidekick.be\/itenium\/blog\/productivity\/autohotkey-dyna-run\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/demo.sidekick.be\/itenium\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Autohotkey DynaRun\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/demo.sidekick.be\/itenium\/#website\",\"url\":\"https:\/\/demo.sidekick.be\/itenium\/\",\"name\":\"Itenium\",\"description\":\"We build software. We build careers.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/demo.sidekick.be\/itenium\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/demo.sidekick.be\/itenium\/#\/schema\/person\/6ab401ce01e858184ee4a8667fe0f022\",\"name\":\"Usdevelop\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/demo.sidekick.be\/itenium\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/cc8cf9b9e9d5bbe7e8d247907cc9ac8457bbfa2854b52eaddf6529adfe88ceab?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/cc8cf9b9e9d5bbe7e8d247907cc9ac8457bbfa2854b52eaddf6529adfe88ceab?s=96&d=mm&r=g\",\"caption\":\"Usdevelop\"},\"sameAs\":[\"https:\/\/demo.sidekick.be\/itenium\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Autohotkey DynaRun - Itenium","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"en_US","og_type":"article","og_title":"Autohotkey DynaRun - Itenium","og_description":"Run any Autohotkey script on the web with a single.. Autohotkey hotkey.","og_url":"https:\/\/demo.sidekick.be\/itenium\/blog\/productivity\/autohotkey-dyna-run\/","og_site_name":"Itenium","article_published_time":"2019-02-16T23:00:00+00:00","article_modified_time":"2025-11-28T12:31:45+00:00","og_image":[{"width":360,"height":300,"url":"https:\/\/demo.sidekick.be\/itenium\/wp-content\/uploads\/2025\/11\/autohotkey-dyna-run.jpg","type":"image\/jpeg"}],"author":"Usdevelop","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Usdevelop","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/demo.sidekick.be\/itenium\/blog\/productivity\/autohotkey-dyna-run\/","url":"https:\/\/demo.sidekick.be\/itenium\/blog\/productivity\/autohotkey-dyna-run\/","name":"Autohotkey DynaRun - Itenium","isPartOf":{"@id":"https:\/\/demo.sidekick.be\/itenium\/#website"},"primaryImageOfPage":{"@id":"https:\/\/demo.sidekick.be\/itenium\/blog\/productivity\/autohotkey-dyna-run\/#primaryimage"},"image":{"@id":"https:\/\/demo.sidekick.be\/itenium\/blog\/productivity\/autohotkey-dyna-run\/#primaryimage"},"thumbnailUrl":"https:\/\/demo.sidekick.be\/itenium\/wp-content\/uploads\/2025\/11\/autohotkey-dyna-run.jpg","datePublished":"2019-02-16T23:00:00+00:00","dateModified":"2025-11-28T12:31:45+00:00","author":{"@id":"https:\/\/demo.sidekick.be\/itenium\/#\/schema\/person\/6ab401ce01e858184ee4a8667fe0f022"},"breadcrumb":{"@id":"https:\/\/demo.sidekick.be\/itenium\/blog\/productivity\/autohotkey-dyna-run\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/demo.sidekick.be\/itenium\/blog\/productivity\/autohotkey-dyna-run\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/demo.sidekick.be\/itenium\/blog\/productivity\/autohotkey-dyna-run\/#primaryimage","url":"https:\/\/demo.sidekick.be\/itenium\/wp-content\/uploads\/2025\/11\/autohotkey-dyna-run.jpg","contentUrl":"https:\/\/demo.sidekick.be\/itenium\/wp-content\/uploads\/2025\/11\/autohotkey-dyna-run.jpg","width":360,"height":300},{"@type":"BreadcrumbList","@id":"https:\/\/demo.sidekick.be\/itenium\/blog\/productivity\/autohotkey-dyna-run\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/demo.sidekick.be\/itenium\/"},{"@type":"ListItem","position":2,"name":"Autohotkey DynaRun"}]},{"@type":"WebSite","@id":"https:\/\/demo.sidekick.be\/itenium\/#website","url":"https:\/\/demo.sidekick.be\/itenium\/","name":"Itenium","description":"We build software. We build careers.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/demo.sidekick.be\/itenium\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/demo.sidekick.be\/itenium\/#\/schema\/person\/6ab401ce01e858184ee4a8667fe0f022","name":"Usdevelop","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/demo.sidekick.be\/itenium\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/cc8cf9b9e9d5bbe7e8d247907cc9ac8457bbfa2854b52eaddf6529adfe88ceab?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cc8cf9b9e9d5bbe7e8d247907cc9ac8457bbfa2854b52eaddf6529adfe88ceab?s=96&d=mm&r=g","caption":"Usdevelop"},"sameAs":["https:\/\/demo.sidekick.be\/itenium"]}]}},"_links":{"self":[{"href":"https:\/\/demo.sidekick.be\/itenium\/wp-json\/wp\/v2\/posts\/1622","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/demo.sidekick.be\/itenium\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/demo.sidekick.be\/itenium\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/demo.sidekick.be\/itenium\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/demo.sidekick.be\/itenium\/wp-json\/wp\/v2\/comments?post=1622"}],"version-history":[{"count":2,"href":"https:\/\/demo.sidekick.be\/itenium\/wp-json\/wp\/v2\/posts\/1622\/revisions"}],"predecessor-version":[{"id":2214,"href":"https:\/\/demo.sidekick.be\/itenium\/wp-json\/wp\/v2\/posts\/1622\/revisions\/2214"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/demo.sidekick.be\/itenium\/wp-json\/wp\/v2\/media\/2093"}],"wp:attachment":[{"href":"https:\/\/demo.sidekick.be\/itenium\/wp-json\/wp\/v2\/media?parent=1622"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/demo.sidekick.be\/itenium\/wp-json\/wp\/v2\/categories?post=1622"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/demo.sidekick.be\/itenium\/wp-json\/wp\/v2\/tags?post=1622"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}