11 karma · joined Jan 4, 2023 (3y ago) · 3 submissions
comment 3y ago · link · parent
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.
comment 3y ago · link · parent
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.