AutoHotkey.py
Write AutoHotkey scripts in Python.
Description
AutoHotkey.py provides a user-friendly API that lets the user write hotkeys and automation scripts in Python harnessing the power of AutoHotkey. It does so by embedding a Python DLL into the AutoHotkey process.
Quickstart
Ensure that you have installed Python 3.8 or later and AutoHotkey 1.1.28 or later.
Install the package to the Python user install directory. To do that, copy and paste the following into a PowerShell window:
py -m pip install --user autohotkey.py
Write the sample code into the playground.py file:
@"
import sys
import ahkpy as ahk
ahk.message_box("Hello!")
@ahk.hotkey("F1")
def bye():
ahk.message_box("Bye!")
sys.exit()
"@ | Out-File -Encoding utf8 playground.py
Finally, run the sample code:
py -m ahkpy playground.py
It will show a "Hello!" message box. When the user presses F1, it will show a "Bye!" message box and exit.
You can check out and run other examples and read the documentation.
Minimum Supported Versions
- AutoHotkey v1.1.28 (U32 and U64 variants), AutoHotkey v2.0 is not supported #23
- Python 3.8.0
- Windows 10, version 1511
Credits
AutoHotkey.py was greatly inspired by Aurelain's Exo. Thanks to Lexikos for his monumental work on AutoHotkey. Thanks to the AutoHotkey site admins for maintaining the lively and welcoming forums.
Metadata
Release files for AutoHotkey.py 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| AutoHotkey.py-0.2.tar.gz | 108.3 kB | Without provenance | Details for AutoHotkey.py-0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| AutoHotkey.py-0.2-py3-none-any.whl | Python 3 | none | any | Details for AutoHotkey.py-0.2-py3-none-any.whl |
Total release size: 185.2 kB
Release files / AutoHotkey.py-0.2.tar.gz
| Download URL | AutoHotkey.py-0.2.tar.gz |
|---|---|
| Size | 108.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7189b7bc2cdf5908ed5f3c2917fe302e5d4e6990f9138364e0734bbce9059e98
|
|
BLAKE2b-256 checksum How to use checksums |
77e0b19f5ef289edcef0aaf83c31045ed7f52bb6e00cc2d806d3491de43c4d1a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / AutoHotkey.py-0.2-py3-none-any.whl
| Download URL | AutoHotkey.py-0.2-py3-none-any.whl |
|---|---|
| Size | 76.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
04b34fc44c2e6e967366fd2487d856c87e51195e57f47647872391d0a7bdb754
|
|
BLAKE2b-256 checksum How to use checksums |
f62cd6e505fb165b2acd2dda92a8091b476fa4b72150c57be249bb08b3e11e8a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Security for AutoHotkey.py 0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.