Releases: spyoungtech/ahk
v1.7.0
What's Changed
mouse_position
,get_mouse_position
,pixel_search
, andimage_search
now return aCoordinates
named tuple (typing.NamedTuple
) type instead of just a plaintuple[int, int]
.- Refactored types shared between sync and async into a common, internal,
_types
module. - The
Position
type is now created usingtyping.NamedTuple
rather thancollections.namedtuple
. - Exposes more types directly via
__init__.py
so they can be imported without reaching into internal modules.
If you were previously importing types from internal modules and are type-checking with mypy in --strict
mode, you may have to adjust your import statements when upgrading to this version or later to ensure mypy checks pass.
Full Changelog: v1.6.3...v1.7.0
v1.6.3
v1.6.2
What's Changed
- GH-289 fix message box in AHKv2 by @spyoungtech in #290
Full Changelog: v1.6.1...v1.6.2
v1.6.1
What's Changed
- Refactors exceptions to the exceptions module for easier access and code de-duplication. Both sync and async versions use the same exception classes now.
Full Changelog: v1.6.0...v1.6.1
v1.6.0
What's Changed
- Fix winmove in AutoHotkey v2 when width and height are omitted by @spyoungtech in #282
- Add use_hwnd parameter and attribute for Control objects by @spyoungtech in #283
- Fix detect hidden windows for AutoHotkey v2 by @spyoungtech in #285
This release includes a small potentially breaking change: the blocking
keyword argument of some window methods is now keyword-only. Previously, these arguments were accidentally allowed to be supplied as a positional argument.
Full Changelog: v1.5.4...v1.6.0
v1.5.4
What's Changed
- fix key_state for AHKv2 when no mode argument is given by @spyoungtech in #279 (reported in GH-277)
Full Changelog: v1.5.3...v1.5.4
v1.5.3
v1.5.2
What's Changed
- SendMode feature and key_wait fix by @spyoungtech in #267
- GH-270 add ability to hide tray icon at runtime by @spyoungtech in #271
Full Changelog: v1.5.1...v1.5.2
v1.5.1
What's Changed
- GH-264 fix
mouse_drag
error when using AutoHotkey v2 by @spyoungtech in #265
Full Changelog: v1.5.0...v1.5.1
v1.5.0
What's Changed
- Add AHK process handling to exit if parent Python process dies unexpectedly by @spyoungtech in #258 -- resolves #257
This release includes a behavior improvement in scenarios where your Python process ends suddenly without the opportunity to run its registered cleanup handlers. Previously, in such cases, AutoHotkey processes created by Python would get orphaned and continue running (when using AHK v1) or produce an unusual error (when using AHK v2). Now, the AutoHotkey processes will be able to infer whether the parent Python process is still alive and will exit gracefully if the parent process has exited.
Full Changelog: v1.4.0...v1.5.0