From my Wish List 2.0, these are my current backport priorities (directives, A_ variables, functions without a good equivalent in AHK v1):
- #SuspendExempt
- A_AllowMainWindow, A_IconHidden, A_IconTip
- A_InitialWorkingDir
- DateAdd/DateDiff (EnvAdd/EnvSub and +=/-= are confusing to use, even for experts)
- DirExist (simple, but very useful, counterpart of FileExist)
- FileInstall
- (writable 'A_' variables)
Also, this would allow functions that have been modified in AHK v2 to have custom backports:
- redefine a built-in function, but maintain access to the original
I accept that backporting all AHK v2 functions and the GUI/Menu objects would be welcome but lower priority, as this may be possible via custom scripts:
commands as functions (AHK v2 functions for AHK v1) - AutoHotkey Community
https://autohotkey.com/boards/viewtopic ... 37&t=29689
objects: backport AHK v2 Gui/Menu classes to AHK v1 - AutoHotkey Community
https://autohotkey.com/boards/viewtopic ... 37&t=43530
Some of the benefits are:
- You can write more forwards-compatible AHK v1 scripts.
- When converting between AHK v1 and v2, you don't get tripped up because certain bits of functionality were never backported.
- Issues to do with A_ variables and backwards/forwards compatibility have already caused a lot of problems. Making possible
try global A_XXX and
try A_XXX := 1 might be worth considering.
- If any time has been wasted it has been because the current DateAdd/DateDiff equivalents in AHK v1 (EnvAdd/EnvSub/+=/-=) were never good enough.