Back

Lexikos
Patches for AutoHotkey
Windows
16 patches available
AutoHotkey is a free, open source macro-creation and automation software utility that allows users to automate repetitive tasks. It is driven by a custom scripting language that is aimed specifically at providing keyboard shortcuts, otherwise known as hotkeys.
AutoHotkey Version 2.0.19
Release Date
1/25/2025
Bug Fix?
Yes
Minor Release?
No
Patch Notes

Fixed memory out-of-bounds access during RegEx compilation.$$$$$$Fixed externally-released modifiers to not be restored post-Send.$$$$$$Fixed modal dialog boxes suppressing InputHook events.$$$$$$Fixed key-up erroneously being suppressed after key-repeat presses it down in some cases.$$$$$$Fixed Critical Error when loading large icons with no alpha channel.$$$$$$Fixed MouseGetPos to make Control blank and not throw if ClassNN cannot be determined.$$$$$$Fixed FileSelect to validate Options.$$$$$$Fixed unexpected Catch/Else/Finally/Until not being flagged as an error in some cases.$$$$$$Fixed Try/Catch/Else/Finally not executing Finally if Else returns.$$$$$$Fixed execution of if-else-if-else-if containing fat arrow functions.
AutoHotkey Version 2.0.18
Release Date
7/4/2024
Bug Fix?
Yes
Minor Release?
No
Patch Notes

Fixed A_Clipboard silently exiting when GetClipboardData returns NULL.$$$$$$Fixed a.b[c] := d to invoke the getter for a.b if there is no setter.
AutoHotkey Version 2.0.17
Release Date
6/5/2024
Bug Fix?
Yes
Minor Release?
Yes
Patch Notes

v2.0.17 $$$ 2af14e2 $$$Implemented an optimization to the WinText parameter by Descolada. [PR #335]$$$$$$Changed UnsetError message to suggest a global declaration instead of appending (same name as a global) after the variable name.$$$$$$Changed VarUnset warning message for consistency with UnsetError.$$$$$$Fixed the increment/decrement operators to throw UnsetError if the var is unset; not TypeError.$$$$$$Fixed OwnProps to assign the property name safely in cases where a property deletes itself.$$$$$$Fixed breakpoints to work in arrow functions under a control flow statement without a block.$$$$$$Fixed debugger to break at the line of the call when stepping out of a function. (This behaviour was added in Revision 31 and broken by v1.1.30.00.)$$$$$$Stepping out of a function which was called as a new thread now breaks at the line which was interrupted; instead of waiting until the next line is reached.$$$$$$Fixed debugger to not delete temporary breakpoints which are ignored while evaluating DBGp property_get or context_get.
AutoHotkey Version 2.0.16
Release Date
5/30/2024
Bug Fix?
Yes
Minor Release?
No
Patch Notes

v2.0.16 Latest$$$$$$Fixed load-time errors sent to stdout showing incorrect file/line number in some cases.$$$Fixed ExitApp on load-time error/warning dialogs to use exit code 2.$$$Fixed locating WindowSpy.ahk in Current User (non-admin) installs.$$$Fixed DBGp property_get paging items incorrectly (again).$$$Fixed StrPut failing if Length/Buffer is specified and MultiByteToWideChar doesnt support the WC_NO_BEST_FIT_CHARS flag for the target codepage.$$$Fixed Download to attempt anonymous authentication if the server requests client authentication.
AutoHotkey Version 2.0.15
Release Date
5/16/2024
Bug Fix?
Yes
Minor Release?
No
Patch Notes

2.0.15 - May 16; 2024$$$$$$Fixed DBGp property_get failing to retrieve properties due to incorrect paging (since v2.0.14).$$$$$$Fixed DBGp property evaluation causing Try without Catch to fail (since v2.0.14).$$$$$$Fixed <base> debugger pseudo-property leaking a reference (since v2.0.14).
AutoHotkey Version 2.0.14
Release Date
5/6/2024
Bug Fix?
Yes
Minor Release?
Yes
Patch Notes

v2.0.14 Latest$$$$$$Fixed the error dialog to handle letter key shortcuts even when text is focused.$$$$$$Fixed MonthCal W-n (number of month) width values to not be affected by DPI scaling.$$$$$$Fixed Click to not return an integer.$$$$$$Fixed detection of key::try { as an error.$$$$$$Fixed :B0*O:XY::Z to produce XYZ rather than XZ (suppressing Y).$$$$$$Fixed Send to leave any prior {modifier Down} in effect even if the key happens to be physically held down.$$$$$$Improved the reliability of the script taking focus when a menu popup is shown.$$$$$$Debugger Improvements$$$$$$Fixed stdout/stderr packets sent during the processing of another command to not corrupt the pending response.$$$$$$Fixed property_get -n <exception>.message and similar.$$$$$$Fixed corrupted results from property_get when a property returns a temporary object with a string; such as x.y.z where y => {z:a}.$$$$$$Fixed crashes when an asynchronous command is received during the processing of another command.$$$$$$Fixed exceptions not being deleted after they are suppressed via property_set.$$$$$$Fixed property_get -c 0 -d 0 to allow global variables; as already allowed by -d 1.$$$$$$Fixed property_get paging enumerated items incorrectly.$$$$$$Improved property_get to support property getters with one parameter (previously only the implicit __Item property supported this).$$$$$$Improved property_get to support properties of primitive values. The value must still be contained by a variable or returned from a property.$$$$$$Improved property_get to allow calling functions with <=1 parameter.$$$$$$Improved property_get to support float keys/parameters.$$$$$$Changed debugger to suppress exceptions during property evaluation.$$$$$$Changed debugger to ignore errors thrown by __Enum (treat as no items).$$$$$$Changed the <enum> pseudo-property to require __Enum. This prevents the object itself from being called as an enumerator.$$$$$$Small code size optimizations in the debugger.
AutoHotkey Version 2.0.13
Release Date
4/20/2024
Bug Fix?
Yes
Minor Release?
Yes
Patch Notes

v2.0.13 Latest$$$$$$Changed Hotkey function to throw ValueError if Options contains an invalid option.$$$Fixed InputHook to respect the +S option for Backspace when acting as undo.$$$Fixed debugger to safely handle property deletion during enumeration.$$$Fixed OLE clipboard content (e.g. error dialog text) being lost on exit.$$$Fixed detection of invalid suffix on a hotkey; such as Hotkey a pu.$$$Fixed DllCall AStr* arg type to copy back only if address changes.$$$Fixed #Include to correctly close any built-in variable it reads (no known impact on real-world scripts).$$$Fixed WinTitles with two different ahk_id values to yield no match.
AutoHotkey Version 2.0.12
Release Date
3/19/2024
Bug Fix?
Yes
Minor Release?
Yes
Patch Notes

v2.0.12 Latest$$$Fixed Gui GetPos/GetClientPos when Gui has an owner window or +DPIScale.$$$$$$Fixed Until preventing subfolder recursion in file loops.$$$$$$Fixed DllCall to throw when arg type is UStr.$$$$$$Fixed a memory leak occurring for each regex callout.$$$$$$Fixed Send erroneously releasing a modifier due to a race condition. For example; ~LAlt::Send {Blind}x intermittently released LAlt if some other keyboard hook was installed more recently than the scripts own hook.$$$$$$Fixed icon loader to prefer higher bit-depth when multiple bitmaps of the same size are present.$$$$$$Fixed SendInput failing to release LCtrl if it had already released RAlt and the layout does not have AltGr.$$$$$$Fixed key-up hotkeys not firing if the key repeats after modifiers change. For example; F1::Send {Ctrl down} should allow F1 up:: to execute when the key is released even though Ctrl is down; but was not allowing it after key-repeat occurs.$$$$$$Fixed an error message to refer to #HotIf rather than #IfWin. [PR #327]$$$$$$Fixed OwnProps erroneously skipping properties with optional parameters.$$$$$$Fixed inconsistent behaviour of cloned dynamic properties.$$$$$$OwnProps not skipping cloned properties which require parameters.$$$Parameters not being passed recursively to parameterless properties (i.e. to allow a.b[c] to evaluate as (a.b)[c]).$$$Fixed SysGetIPAddresses causing a Critical Error when the network subsystem is non-functional; e.g. in Windows safe mode.$$$$$$Changed ControlGetFocus to return 0 when focus cant be determined; such as when a console window is active.
AutoHotkey Version 2.0.11
Release Date
12/22/2023
Bug Fix?
Yes
Minor Release?
Yes
Patch Notes

v2.0.11 Latest$$$$$$Added a workaround for the first shown menu not accepting keyboard input on Windows 10.$$$$$$Fixed the Add method (Gui) to support the ShortDate option for DateTime controls.$$$$$$Fixed a reference counting error with multi-level function nesting.$$$$$$Fixed #include <x> causing a load-time crash if used inside a function.$$$$$$Fixed ListView.Opt(NoSort).$$$$$$Fixed a memory leak occurring when an object with no own properties is cloned.$$$$$$Fixed #include and FileInstall (non-compiled) to compare file names ordinally; not linguistically.
AutoHotkey Version 2.0.10
Release Date
9/24/2023
Bug Fix?
Yes
Minor Release?
No
Patch Notes

Fixed crashing when a named function hotkey is used after #HotIf.$$$$$$Fixed numeric literals ending with a dot to not cause line continuation.$$$$$$Fixed pre-increment/decrement to work with chained array indexing.$$$$$$Fixed OnNotify/OnCommand applying styles only applicable to OnEvent.$$$$$$Fixed FileExist/DirExist leaking handles when emptydir\* is used.$$$$$$Fixed DirExist leaking handles when only files match.
AutoHotkey Version 1.1.36.02
Release Date
12/7/2022
Bug Fix?
Yes
Minor Release?
Yes
Patch Notes

Improved ComObjConnect to allow detecting disconnect via __Delete.$$$$$$Fixed a performance issue with command args exceeding 4*1024*1024 chars.$$$$$$Fixed FileCreateDir with network shares/UNC paths.$$$$$$Fixed undefined behavior for File.Length/Read() with console buffers.
AutoHotkey Version 1.1.36.01
Release Date
12/2/2022
Bug Fix?
Yes
Minor Release?
No
Patch Notes

Fixed undefined behaviour for Switch numeric comparisons.
AutoHotkey Version 1.1.36.00
Release Date
12/1/2022
Bug Fix?
Yes
Minor Release?
Yes
Patch Notes

Added VerCompare().$$$$$$Added support for breakpoint exceptions via DBGp.$$$$$$Extended #Requires to support operators for range checks (< <= > >= =) and additional keywords: Unicode; ANSI; 32-bit; 64-bit.$$$$$$Added CompanyName to the version information in AutoHotkey; which may work around a Windows 10 bug where the program would not appear in Open With.$$$$$$Changed Switch/Case to perform non-numeric comparison when the switch or case expression is a lone literal string; such as 00; and documented comparison behaviour which was previously undocumented.$$$$$$Fixed some inconsistencies with integer property names via IDispatch.$$$$$$Negative values always being considered non-numeric.$$$Positive values losing formatting; such as leading zeroes.$$$Fixed potential crashes when inspecting a ComObject via DBGp after using ComObjConnect.$$$$$$Fixed FileAppend to treat a blank Encoding as omitted.$$$$$$Fixed version comparisons to ignore numeric build info; e.g. 1.1.35.00+1+abcdef (1 is the number of commits since 1.1.35.00).$$$$$$Fixed FileCreateDir X\Y\ (with trailing slash) failing to create X [broken by v1.1.35.00].
AutoHotkey Version 1.1.35.00
Release Date
10/30/2022
Bug Fix?
Yes
Minor Release?
Yes
Patch Notes

Changed GroupActivate and GroupClose to behave more intuitively:$$$$$$Evaluate windows against the window group as a whole; not individual window specifications.$$$When GroupClose indirectly causes another matching window to activate; leave it active even if it isnt matched by the same window specification.$$$Contributions by jeeswg (pull requests #186; #235; #240; #249; #273; #274):$$$$$$Backported operators !==; >>> and >>>= from v2.$$$Backported A_InitialWorkingDir from v2.$$$Backported File.Handle from v2.$$$Backported A_Clipboard from v2.$$$Backported IsSet() from v2.$$$Bug-fixes:$$$Fixed a spelling error in the #Warn Unreachable message.$$$$$$Fixed FileCreateDir handling of paths containing .. or /.$$$$$$Fixed some issues with FileSelectFiles RootDir\Filename parameter:$$$$$$Filename not being used when RootDir is a badly formatted CLSID.$$$Undefined behaviour for long paths when GetShortPathName fails (such as when long path awareness is disabled or theres a default filename which isnt an existing file).$$$Fixed FileSetTime to set A_LastError if it finds no files.$$$$$$Fixed EnvAdd/+= losing precision when adding 115;292;150;461+ seconds.$$$$$$Fixed the keyboard hook reinserting a suppressed dead key when Enter is pressed; such as in the sequence `o{Enter} when the following is true:$$$$$$A separate script has suppressed ò due to :?*:ò::.$$$The current process also has active hotstrings.$$$The other process installed its hook last.$$$Fixed ControlGet List Selected option repeating output on x64 when the target is 32-bit.$$$$$$Fixed stack corruption for ControlGet List Count options.
AutoHotkey Version 1.1.34.04
Release Date
8/23/2022
Bug Fix?
Yes
Minor Release?
No
Patch Notes

Fixed callback functions not being included in the debuggers call stack.$$$$$$Fixed MsgBox timeout reported as OK if shown within 100ms of startup.$$$$$$Fixed Edit control to ignore +WantTab while +ReadOnly is in effect.$$$$$$Fixed property_get returning a local var when -d should prevent it.$$$$$$Fixed RegRead to support REG_MULTI_SZ values containing empty items.$$$$$$Fixed x[;y]:=z invoking undefined behaviour.
AutoHotkey Version 1.1.37.02
Release Date
3/16/2022
Bug Fix?
Yes
Minor Release?
Yes
Patch Notes

Fixed inability of LWin::Alt to be used to activate some Alt-combos.$$$$$$Fixed mouse AltTab hotkeys not suppressing execution of a prefix hotkey; such as 1:: for 1 & WheelDown::AltTab. (Broken by v1.1.37.00)$$$$$$Fixed hook hotkeys not recognizing modifiers which are pressed down by SendInput.$$$$$$Fixed some issues affecting suppressed Alt/Ctrl/Shift/Win hotkeys; such as:$$$$$$*LCtrl:: blocked LCtrl from the active window; but sending Alt-key combinations would fail because the system thinks Ctrl is down; and would therefore send WM_KEYDOWN instead of WM_SYSKEYDOWN.$$$*LAlt:: caused the system to forget any prior {LAlt DownR}; so a remapping such as LCtrl::LAlt would not behave correctly while LAlt is physically down; even though LAlt was suppressed.$$$Other potential issues where the systems low-level tracking of a modifier key doesnt match up with the logical state.$$$Fixed A_Clipboard ignoring assignment of pure numeric values.$$$$$$Fixed SendInput failing to release LCtrl after having released RAlt (if it isnt AltGr).$$$$$$Fixed new threads being unable to prevent a message check with Critical.
Interested in automating patching for AutoHotkey?