This script now runs uncompiled.
I may not compile any more releases unless requested since AHK v2 works perfectly with AHK v1 compiler. Just make sure you save the .bin files in the AHK v2 compiler folder.
See GitHub docs for compiling instructions. If you run this script compiled you can choose any version of AHK as your base installed version.
The reason for this change is to prevent the compiled EXE's from being detected as a virus (hopefully), which of course is a false positive.
Just be sure to copy over the AHK v2 binary of your choice to the script dir and rename it to AHK Portable Installer.exe. Then you should be able to choose any version of AHK for the base install on your system.
Of course, be sure to always run the copied/renamed EXE when trying to run this script, and not running the script directly.
- Associate the .ahk extension with any version of AHK on double-click.
- Selectively choose which context-menu items appear in the context menu.
- Associate any text editor with "Edit Script" in context menu easily.
- Define as many versions of AHK as you want to run in parallel.
- Automatically launch the appropriate compiler from "Compile Script" context menu.
- Checks for updates when prompted, or does so automatically if enabled.
- Displays the latest versions of AHK v1 and v2 (with internet connection of course).
- Displays currently active version of AHK.
- Provides links to AHK v1 and v2 download pages / version archives.
- Allows you to invoke WindowSpy.ahk and help file for active AHK version from GUI.
- Easy access to edit templates for new AutoHotkey.ahk files from GUI.
I've tested this on a fresh install of windows and it works like a charm. Just have to restart after activating an EXE (writing the registry keys) the first time, but after that, future switching doesn't require a restart.
Download on GitHub
>> Change Log / Releases
If you need a version of Window Spy for AHK v2, go to this thread.
Getting AHK v2 to run on the system as if it was installed (let alone switching versions) is not as easy as it could (or maybe should be) yet. But there are some other users who have contributed other solutions. If my solution doesn't work please let me know, but also try these out below:
Here are 2 forum posts that discuss switching versions of AHK or running multiple versions of AHK on the same system:
AHK EXE Swapper
AltAHK Version (RAAV)
AHK v1: https://www.autohotkey.com/boards/viewtopic.php?f=6&t=76602
AHK v2: https://www.autohotkey.com/boards/viewtopic.php?f=83&t=76603