![Waving :wave:](./images/smilies/icon_wave.gif)
I would like to suggest a script which can read a v1 script and suggest/make syntax changes in accordance with v2.
For example:
var = abc
to
var := "abc"
Thanks in advance for your help and support.
Code: Select all
var := "abc"
Its not whether its necessary, its just not POSSIBLE. Some changes are bigger than just syntax changes. There are functionality changes, which require users to consider design changes.
This is pretty much what that script above does. It converts with decent accuracy, for the bigger changes, and leaves some placeholders for the user to investigate further. It is a VERY tedious process to upgrade a larger script from v1 to v2, and a quick script converter is extremely convenient to get some of the more repetitive changes out of the way.SOTE wrote: ↑01 Aug 2019, 07:15If the script can simply analyze a V1 script and suggest changes to be V2 compatible, it would probably be highly useful. That would be like the 1st step. Then an actual conversion script (with some decent accuracy) would be like the 2nd step. The user could then choose which step, if they want to proceed with the "auto conversion" 2nd step or make the changes manually.
Yes, that's the real difficulty.
Its not a simple search and replace.
Code: Select all
Gui(command, p*) {
if (command = "new")
return GuiCreate(p*)
}
Return to “AutoHotkey Development”
Users browsing this forum: No registered users and 22 guests