AhkDllThread on AHK_L (_Struct missing??)
Posted 24 May 2012 - 08:51 PM
But when I execute it I get an error about a _Struct file not found.
Where can I get this _Struct file?
I cant found it in the AHK_H download.
Posted 24 May 2012 - 10:00 PM
Posted 24 May 2012 - 10:37 PM
Now the script compiles.
I'm just trying the basic script at the bottom of this page:
<!-- m -->http://www.autohotke... ... e-txt.html<!-- m -->
#include AhkDllThread.ahk AhkThread := AhkDllThread("AutoHotkey.dll") AhkThread.ahktextdll("SplashTextOn,130,20, From AutoHotkey.dll,Hello World!") MsgBox, Press Ok to terminate Thread. AhkThread.ahkterminate() MsgBox, Thread was terminated.The script starts, but I get this error:
What could be the problem?
Posted 25 May 2012 - 06:39 AM
I just downloaded AHK_L Unicode and AutoHotkey.dll Unicode to a separate foder.
Then created a lib folder there and downloaded AhkDllThread.ahk, sizeof, _Struct.ahk and _MemoryLibrary.ahk into this lib folder.
Then created the following script, saved as AutoHotkey.ahk in same folder where AHK_L and AHK.dll are.
#include <AhkDllThread> AhkThread := AhkDllThread("AutoHotkey.dll") AhkThread.ahktextdll("#Persistent`nSplashTextOn,130,20, From AutoHotkey.dll,Hello World!") MsgBox, Press Ok to terminate Thread. AhkThread.ahkterminate() MsgBox, Thread was terminated.
It works for me :?
Posted 25 May 2012 - 02:16 PM
I'll try with AHK.dll unicode, may be that's the problem.
Posted 25 May 2012 - 02:23 PM
I didn't know they couldn't interoperate between ansi and unicode.
Thanks for you time
Posted 27 May 2012 - 06:21 PM
You can even load the dll without registering it, using ComObjDll (only available in AHK_H).