- To recreate some AHK functionality in Python.
- First I'd take a command/function, and rewrite it in AHK using DllCall and NumGet/NumPut. In a similar way to the code here:
AutoHotkey via DllCall: AutoHotkey functions as custom functions - AutoHotkey Community
- Then I'd try to convert that to Python. For using the Winapi in Python, there's ctypes which is built-in, and also pywin32 (with a 64-bit build available) which is external.
- You could ignore AHK and just look up Python examples for specific parts of the Winapi directly, however, I like doing things in AHK. As my main language, to do prototypes for other languages, and as a prototype for ASM/C++ code for use as machine code ... in AHK.
Get help with using AutoHotkey and its commands and hotkeys
Hi, for accessing AHK functionality from other programming languages, you can try using AHK_H's Autohotkey.dll. I am unfamiliar with Python so I cannot give you a working example.
AutoHotkey_H v1.1 documentation is out of date. Please refer to AutoHotkey v2 documentation, majority of functions are included in v1.1.