Hi, I downloaded ahkdll-v2beta-release-master.zip from somewhere in September, but I can no longer find a link to that beta release.
At the moment I have ahkdll-v2 alpha registered for COM, and use it via "ComObjCreate("AutoHotkey2.Script") without issues.
The beta release that I have (maybe not up to date? Timestamp 31 Aug 2021 at 23:48) seems to be missing the COM-related functions, no entry point. Here are the only functions dllexp.exe shows:
Obviously, regsvr32 fails on this DLL.
Am I missing something?
Also, if there could be a link somewhere on the forum to the beta release it would be nice (maybe it's there somewhere?).
Thanks very much!
Regards,
burque505
AutoHotkey.dll v2 beta release - COM issue
Re: AutoHotkey.dll v2 beta release - COM issue
@thqby, thanks, I'll try it!
Regards,
burque505
EDIT: Missing ahktextdll
Regards,
burque505
EDIT: Missing ahktextdll
Re: AutoHotkey.dll v2 beta release - COM issue
v2: HRESULT NewThread([in, optional]VARIANT script, [in, optional]VARIANT params, [in, optional]VARIANT title, [out, retval]DWORD* ThreadID);
Re: AutoHotkey.dll v2 beta release - COM issue
I guess I'm not up to speed on this.
Might I ask how I would convert the script below to use your DLL? This is using the January 2021 version of AHK Dll v. 2.
Thanks!
Might I ask how I would convert the script below to use your DLL? This is using the January 2021 version of AHK Dll v. 2.
Code: Select all
ahk := ComObjCreate("AutoHotkey2.Script")
ahk.ahktextdll("")
ahk.ahkexec("#Persistent`nMsgbox(""Hello AHK"") ")
;~ while (ahk.ahkReady()) {
;~ sleep 100
;~ }
ahk.ahkTerminate()
Re: AutoHotkey.dll v2 beta release - COM issue
Code: Select all
ahk := ComObject("AutoHotkey2.Script")
threadid := ahk.NewThread("Persistent`nMsgbox(`"Hello AHK`") ")
; threadid := ahk.NewThread("Persistent ")
; ahk.ahkExec(threadid, "Msgbox(`"Hello AHK`")")
while (!ahk.ahkReady(threadid)) {
sleep 100
}
ahk.ahkPostFunction(threadid,'exitapp') ; ahkFunction(threadid, 'exitapp') will block the calling thread.
Re: AutoHotkey.dll v2 beta release - COM issue
I'm trying to access a V2 COM object from AHK v1. That won't work for v1.
I get this error when I run that using AHK V2-beta1:
I get this error when I run that using AHK V2-beta1:
Code: Select all
---------------------------
test3.ahk
---------------------------
Error: (0x8002000E) Invalid number of parameters.
Specifically: ahkReady
Line#
001: ahk := ComObject("AutoHotkey2.Script")
002: threadid := ahk.NewThread("Persistent
Msgbox("Hello AHK") ")
---> 006: While (!ahk.ahkReady(threadid))
006: {
007: sleep(100)
008: }
009: ahk.ahkPostFunction(threadid,'exitapp')
010: Exit
Try to continue anyway?
---------------------------
Yes No
---------------------------
Re: AutoHotkey.dll v2 beta release - COM issue
The number of ahkready parameters is wrong in V1, and the other methods seem to work normally.
Re: AutoHotkey.dll v2 beta release - COM issue
Not sure what's happening for me. This is using AutoHotkey64.exe just downloaded from your github page. Same script I just copied from your post.
EDIT: 32-bit works. 64-bit does not.Re: AutoHotkey.dll v2 beta release - COM issue
throw this error in 64bit, but work fine in 32bit.
Re: AutoHotkey.dll v2 beta release - COM issue
I probably know the reason. The method parameters are not defined correctly
Re: AutoHotkey.dll v2 beta release - COM issue
Thanks for all your work on this. I'm looking forward to seeing more!
Regards,
burque505
Regards,
burque505
Re: AutoHotkey.dll v2 beta release - COM issue
The fixed version has been released.@burque505
Re: AutoHotkey.dll v2 beta release - COM issue
@thqby, thank you, I will try it out.
Who is online
Users browsing this forum: No registered users and 3 guests