Page 1 of 1

How to use autohotkey_H in C++

Posted: 29 Jun 2023, 01:15
by stockstock
I found the project of HotkeyIT on GitHub, and AutoHotkey_H master branch contains lib and exp files without header files or function names. I don't know how to use the AHKDll project either.
https://github.com/HotKeyIt/ahkdll


I also found AutoHotkey_H v1 project, but after extracting it, there are several DLL files without header files or function names. I tried testing it based on an example from an old forum post in 2015, but it was unsuccessful.
https://www.autohotkey.com/board/topic/96666-tutorial-c-and-autohotkey/
https://github.com/HotKeyIt/ahkdll-v1-release


I also looked for the DOC file and read it (https://hotkeyit.github.io/v1/docs/AutoHotkey.htm), but the examples inside were not written in C++. Could someone give me some guidance? Where can I find relevant materials on how to use AHK's functionality by calling autohotkey.dll in C++?


[Mod action: Moved topic from “Ask for Help (v1)” to this section dedicate to AHK_H.]

Re: How to use autohotkey_H in C++

Posted: 29 Jun 2023, 03:43
by boiler
You should be able to find the answers to your questions in the section of the forum that your thread was moved to, which is dedicated to AHK_H. Check both here in “Ask for Help” and in its parent forum.

Re: How to use autohotkey_H in C++

Posted: 29 Jun 2023, 08:57
by guest3456
stockstock wrote:
29 Jun 2023, 01:15
I found the project of HotkeyIT on GitHub, and AutoHotkey_H master branch contains lib and exp files without header files or function names. I don't know how to use the AHKDll project either.
https://github.com/HotKeyIt/ahkdll
this is just the source code for the project
stockstock wrote:
29 Jun 2023, 01:15
I also found AutoHotkey_H v1 project, but after extracting it, there are several DLL files without header files or function names. I tried testing it based on an example from an old forum post in 2015, but it was unsuccessful.
https://www.autohotkey.com/board/topic/96666-tutorial-c-and-autohotkey/
https://github.com/HotKeyIt/ahkdll-v1-release
this is what you want in order to grab the .dll file that you would use to call functions from c++
what specifically didnt work when you tried to follow that old tutorial?
stockstock wrote:
29 Jun 2023, 01:15
I also looked for the DOC file and read it (https://hotkeyit.github.io/v1/docs/AutoHotkey.htm), but the examples inside were not written in C++. Could someone give me some guidance? Where can I find relevant materials on how to use AHK's functionality by calling autohotkey.dll in C++?
so yeah the docs are mostly geared towards using either the AHK_H.exe specific features, or calling the .dll from within AHK

you can find some of the docs for the .dll features here:
https://hotkeyit.github.io/v1/docs/AutoHotkeyDll.htm
and follow that section in the sidebar

here is another old post where HotKeyIt says where the .dll functions are defined:
https://www.autohotkey.com/boards/viewtopic.php?t=34779&p=160687

Re: How to use autohotkey_H in C++

Posted: 29 Jun 2023, 09:09
by stockstock
thanks,I'll try it