You can host the dll in a csharp application using techniques described
here and at
codeproject. The second link includes a code example.
If you just modify the relevant lines with:
Code:
[DllImport("Invoke", CharSet=CharSet.Ansi)]
public extern static int InvokeFunc(int funcptr, string script, string message, string title);
static void Main(string[] args) {
int hmod=LoadLibrary("AutoHotkey.dll");
int funcaddr=GetProcAddress(hmod, "ahkdll");
int result=InvokeFunc(funcaddr, "dllclient.ahk", "", "");
...}
modified csharp example:
here
You will also need the Invoke function code from the codeproject link.
I agree with Lexikos, that if you are using dotnet, you should probably invest more time in learning IronAhk.
I may expose more AutoHotkey built in functions, but there are a few other things that are higher on my todo list.
AutoHotkey.dll, is GPL v2.
Edit3:
Thanks to Lexikos for pointing out that the CharSet can be specified as ansi.