- 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
https://autohotkey.com/boards/viewtopic.php?f=7&t=37871
- 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.
which languages should I learn to learn DllCall and Windows API Functions?
Re: which languages should I learn to learn DllCall and Windows API Functions?
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
Re: which languages should I learn to learn DllCall and Windows API Functions?
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.
(https://hotkeyit.github.io/v2/docs/AutoHotkeyDll.htm)
Note: (https://hotkeyit.github.io/v2/)
(https://hotkeyit.github.io/v2/docs/AutoHotkeyDll.htm)
Note: (https://hotkeyit.github.io/v2/)
AutoHotkey_H v1.1 documentation is out of date. Please refer to AutoHotkey v2 documentation, majority of functions are included in v1.1.