Better HN
topnewbestaskshowjobs
Log inSign up

RaptorX

11 karma · joined Jan 4, 2023 (3y ago) · 3 submissions

Submissions

comment 3y ago · link · parent

you can have v2 and v1 installed and running at the same time. I dont see any issues with the newest version :)

comment 3y ago · link · parent

we have the #Requires directive

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

I have been coding with v1 for about 15yrs and switched to v2 in a heartbeat.

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.