I see V2 Alpha is on the front page of AHK website now as a download.
If I replace my current AHK - always gone for the default version...
Will my old scripts still work the same? Or is there some difference and I need to make changes to my code?
Thanks.
v2 Alpha - will my old code still work?
Re: v2 Alpha - will my old code still work?
Some old scripts will not work the same, or will not work at all - here are the changes:
https://www.autohotkey.com/v2/v2-changes.htm
I personally have not yet made the switch because I have scripts needed for work that won't transfer over. Thinking about making the switch onces it gets out of alpha.. v2 looks like more fun and has more useful built-in functionalities.
-TL
Re: v2 Alpha - will my old code still work?
Your AHKv1 scripts will very likely not work with AHKv2. You will be forced to keep using the AHKv1 interpreter or will need to convert most of your code from AHKv1 syntax to AHKv2 syntax. For people with large scripts (over hundreds or thousands of lines of code) or with a large number of scripts, conversion could be a major pain.
An AHK guide and scripts that help convert AHKv1 syntax to AHKv2 syntax will be a major help. The better the guides and conversion scripts, the less painful the transition.
The AutoHotkey member jeeswg has done a number of posts about converting AHKv1 scripts to AHKv2.
AHK v1 to AHK v2 conversion tips/changes summary
(https://www.autohotkey.com/boards/viewtopic.php?t=36787)
AHK v1 to AHK v2 converter
(https://www.autohotkey.com/boards/viewtopic.php?f=37&t=36754)
Re: v2 Alpha - will my old code still work?
Tigerlily wrote: ↑27 Mar 2019, 05:14I don’t believe those changes are completely up to date
Some old scripts will not work the same, or will not work at all - here are the changes:
https://www.autohotkey.com/v2/v2-changes.htm
I personally have not yet made the switch because I have scripts needed for work that won't transfer over. Thinking about making the switch onces it gets out of alpha.. v2 looks like more fun and has more useful built-in functionalities.