v2.1-alpha.1
Based on v2.0.3.
Changes
Improved RegExReplace with the ability to pass a callback function instead of replacement text, based on PR #307 by thqby.
Added WinGetEnabled.
Added WinGetAlwaysOnTop.
Added an optional Filename parameter to Edit.
Added the OnMessage method to the Gui class, based on code by thqby.
Added modeless menus.
- Allows new threads to run without freezing the menu.
- Allows the tray menu to be opened without stalling the current thread.
- Added Wait parameter (#3) to Menu.Prototype.Show (defaults to true, i.e. modal menu).
Includes changes from the v1.1 branch:
Added support for ByRef VARIANT in incoming COM calls.(This was already supported in v2.)- Fixed omitted IDispatch params to translate to SYM_MISSING.
- Added support for two-variable enumerators (for-loops) with IDispatch-wrapped AutoHotkey objects.
Notes
Documentation is on the alpha branch and included in the downloads. As of v2.1-alpha.3, it is also available at https://autohotkey.com/docs/alpha/
Running the installer directly will install to the "v2" sub-directory, as this is the default behaviour for "upgrade" installs (and the UX scripts are unchanged from v2.0.3). This caused issues with v2.0.5 of thqby's AutoHotkey v2 Language Support extension (but newer versions should work). To instead install it to the "v2.1-alpha.1" sub-directory, run AutoHotkeyUX.exe install.ahk /install "SOURCE", where SOURCE should be replaced with the path of a directory where you have extracted the v2.1 files. Alternatively, the interpreter path can be set to a v2.0 interpreter in the extension's settings.
If you do not wish to run scripts with v2.1-alpha by default, ensure you have installed at least v2.0.3 the normal way, and change the v2 build preference in the launcher settings from 64-bit to 64-bit, <2.1- (or 32-bit if that's your preference). This can be done in the GUI by typing or pasting into the ComboBox. If a script #Requires AutoHotkey v2.1-alpha.1, it will still run with the alpha.
https://www.autohotkey.com/download/2.1/version.txt now contains the latest v2.1 version.
https://www.autohotkey.com/download/versions.txt now contains a line for the latest v2.1 version.