chocolatey-community/chocolatey-packages

AutoHotkey v2

Closed this issue · 5 comments

Checklist

  • I have checked the moderation queue that no new version has been submitted (only visible when logged in), or the submitted package version has failed the automated checks.

Please navigate to the following link to view the moderation queue.

  • I have verified that the new version is a stable release.
  • I have looked to see if there are any Bug reports that prevents a new version being submitted and that no existing Outdated Reports have been created.
  • I have verified the new version has a Windows binary (EXE or MSI installer, Zip or other archive, etc).

New Software Version

2.0

Download location

https://www.autohotkey.com/

Package Page

https://community.chocolatey.org/packages/autohotkey

AutoHotkey 1.x is considered deprecated now.

image

According to this page, it appears that AutoHotkey is backwards compatible:
https://www.autohotkey.com/boards/viewtopic.php?f=24&t=112989

Note that the installation folder for AutoHotkey 1 is generally
C:\Program Files\AutoHotkey

but AutoHotkey 2 is
C:\Program Files\AutoHotkey\v2

In testing, v1 was not removed when I installed v2.

Looks like they can be ran side-by-side:
https://www.autohotkey.com/boards/viewtopic.php?f=2&t=113012

As this is a major version release, I'm not quite sure how it should be handled with Chocolatey. You can liken their methodology similar to how Microsoft Office comes out with a newer version. It's not just an update, but a whole new version.

With this new version, there is now a launcher/dash area where you can modify settings. I mention this because scripts that are launched will, by default, open this version selection screen...

image

In the dash, the default options are...

image

Saying that to say, if someone has a script that is set to launch purely by running the ahk file, it may not launch because it's going to present them with this version selection window. Might consider this if wanting to update.

Perhaps there should be a new package, like autohotkey2, since there are so many changes?

For anyone reading this who is curious about the UI Access option, see this:
https://gist.github.com/anonymous1184/fa660cf2312cc50b38621a7c9b23b628#ui-access-uia

I also noticed this package, but it's confusing because although it's version 2 in portable, it is not in the installer:
https://community.chocolatey.org/packages/autohotkey.portable/2.0.10

As another thought, in the configuration if you set this to "Use v1.x" then all scripts will continue to work so long as v1 is installed.

image

That setting corresponds to this:

[HKEY_CURRENT_USER\Software\AutoHotkey\Launcher]
"Fallback"="1"

In theory you could have a registry entry in the Choco installation script that enabled this. That way it would not break existing scripts, and in theory not break v2 scripts either, because they should be detected.

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?
This issue will be closed in 14 days if it continues to be inactive.

Please do not add a comment to circumvent automatic closure unless you plan to help move it forward.
Doing this may lead to the issue being closed immediately instead.

This is a duplicate of #1710.