{"id":6124,"date":"2026-01-12T23:39:36","date_gmt":"2026-01-12T22:39:36","guid":{"rendered":"https:\/\/pmortensen.eu\/world2\/?p=6124"},"modified":"2026-02-16T18:10:52","modified_gmt":"2026-02-16T17:10:52","slug":"mouse-actions-are-actually-supported-in-via-just-not-in-vias-gui","status":"publish","type":"post","link":"https:\/\/pmortensen.eu\/world2\/2026\/01\/12\/mouse-actions-are-actually-supported-in-via-just-not-in-vias-gui\/","title":{"rendered":"Mouse actions are actually supported in Via macros, just not in Via&#8217;s GUI"},"content":{"rendered":"<p>Today, I discovered that mouse actions in <a href=\"https:\/\/docs.keeb.io\/via\">Via<\/a> macros are actually supported! But a bug in Via&#8217;s GUI makes it impossible to enter them&#8230;<\/p>\n<p>So how is it possible? By using the <a href=\"https:\/\/www.reddit.com\/r\/Keychron\/comments\/1buwibx\/comment\/kxx3kt0\/\">Via clone<\/a> (but <strong><em>only<\/em><\/strong> if using a Keychron keyboard; it is supposed to take any keyboard&#8217;s JSON file as input, but I have never seen it demonstrated to actually be working). And the mouse actions actually work when the macro is executed.<\/p>\n<p>Then in Via, the mouse keycodes are displayed as KC_MS_BTN1 (left click) and KC_MS_BTN2 (right click). But if trying to the modify macros they are in, we get (as noted <a href=\"https:\/\/pmortensen.eu\/world2\/2024\/02\/26\/a-hack-to-use-mouse-actions-in-via-macros#listOfViaDeficiencies_and_solutions\">in a previous blog post<\/a>):<\/p>\n<p><strong><em>&#8220;Whoops! Invalid keycodes detected inside{}: KC_MS_BTN2&#8221;<\/em><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today, I discovered that mouse actions in Via macros are actually supported! But a bug in Via&#8217;s GUI makes it impossible to enter them&#8230; So how is it possible? By using the Via clone (but only if using a Keychron &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/pmortensen.eu\/world2\/2026\/01\/12\/mouse-actions-are-actually-supported-in-via-just-not-in-vias-gui\/\"> <span class=\"screen-reader-text\">Mouse actions are actually supported in Via macros, just not in Via&#8217;s GUI<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[28,26,35,38,41],"tags":[],"_links":{"self":[{"href":"https:\/\/pmortensen.eu\/world2\/wp-json\/wp\/v2\/posts\/6124"}],"collection":[{"href":"https:\/\/pmortensen.eu\/world2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pmortensen.eu\/world2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pmortensen.eu\/world2\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pmortensen.eu\/world2\/wp-json\/wp\/v2\/comments?post=6124"}],"version-history":[{"count":13,"href":"https:\/\/pmortensen.eu\/world2\/wp-json\/wp\/v2\/posts\/6124\/revisions"}],"predecessor-version":[{"id":6180,"href":"https:\/\/pmortensen.eu\/world2\/wp-json\/wp\/v2\/posts\/6124\/revisions\/6180"}],"wp:attachment":[{"href":"https:\/\/pmortensen.eu\/world2\/wp-json\/wp\/v2\/media?parent=6124"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pmortensen.eu\/world2\/wp-json\/wp\/v2\/categories?post=6124"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pmortensen.eu\/world2\/wp-json\/wp\/v2\/tags?post=6124"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}