which languages should I learn to learn DllCall and Windows API Functions?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
jeeswg
Posts: 6902
Joined: 19 Dec 2016, 01:58
Location: UK

Re: which languages should I learn to learn DllCall and Windows API Functions?

21 Dec 2018, 08:36

- 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.
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
oif2003
Posts: 214
Joined: 17 Oct 2018, 11:43
Contact:

Re: which languages should I learn to learn DllCall and Windows API Functions?

21 Dec 2018, 14:21

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/)
AutoHotkey_H v1.1 documentation is out of date. Please refer to AutoHotkey v2 documentation, majority of functions are included in v1.1.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: peter_ahk, TAC109 and 339 guests