by bsnnkv · 3y ago · 0 comments
I'm taking a month off from development while I'm traveling, maybe I'll feel less salty about this when I get back.
The biggest issue right now is that the Run and RunWait commands require strings for the commands to be executed, and AHK v2 has absolutely garbage support for string interpolation.
Honestly I'm not sure if I'll continue supporting AHK or just develop my own sxhkd (swhkd?) and recommend that for users going forward.
[1]: https://github.com/LGUG2Z/komorebi
[2]: https://github.com/LGUG2Z/komorebi/blob/master/komorebic.lib...
But I would definitely not recommend converting v1 scripts to v2 if is not absolutely necessary.
You can have both installed and work great with the new launcher that auto selects version based on the #Requires directive.
I would definitely not convert v1 scripts that are longer than 2k lines.
What I have found is that re-writing stuff for v2 is WAY easier than converting.
You might also try the v1 -> v2 converter by dimitri. It is not perfect but does 90% of the work for ya.
e.g.: #Requires Autohotkey v1.1.36+ 32-Bit
When you install v2 it has a launcher that can be configured and runs scripts with the correct interpreter based on that directive.
If that directive is not in the script it would try to determine the version based on syntax. And if it couldnt determine it, it would ask you what to do.
I have both versions installed and have had no issues as of yet.