I want to make some stuff with VB.net and use some ahk scripts.
Actually I just need help to get the functions out of the .dll - and maybe a small example for it.
The Problem is - I dont want to register the autohotkey.dll file.
(Keyword: Export functions)
I found it over here (the way to import functions): https://autohotkey.com/board/topic/1082 ... verwenden/
(German thread)
I'm using the ahk.dll from Win32w. (From this one https://github.com/HotKeyIt/ahkdll-v1-release because I dont know - this were the one I got redirected to )
As I see now - there is a v2 version - maybe I should use this, depends on what you say.
Back to topic.
To call the DLL and import the function (ahktextdll were the example) I want to use, I've to use this code:
Code: Select all
Module Module1
<DllImport("AutoHotkey.dll", CallingConvention:=CallingConvention.Cdecl, CharSet:=CharSet.Unicode)>
Function ahktextdll(ByVal script As String, ByVal options As String, ByVal param As String) As Integer
End Function
End Module
I definetly need something to reset the ahk script, add a script to the existing/running script, - something like this.
Hope you can help me out
Cheers