Page 1 of 1

AutoHotkey.dll and COM interface setup issue

Posted: 20 Mar 2018, 06:49
by Xeo786
I just want to utilize "AutoHotkey.dll" so I haven't replaced "AutoHotkey.exe" coz I doubt that my other work can have compatibility issue so I have registered only "AutoHotkey.dll"
by running

Code: Select all

regsvr32 "D:\dll\AutoHotkey.dll"
and registry gone successful ......... but following script not working even I restarted my PC.

Code: Select all

AhkCom := ComObjCreate("AutoHotkey.Script")
AhkCom.ahktextdll("MsgBox Hello World!`nExitApp")
While AhkCom.ahkReady()
Sleep, 100
MsgBox Exiting now
am I missing something ....

Re: AutoHotkey.dll and COM interface setup issue

Posted: 20 Mar 2018, 09:46
by HotKeyIt
Try running regsvr32 from cmd as Administrator!

Re: AutoHotkey.dll and COM interface setup issue

Posted: 21 Mar 2018, 02:29
by Xeo786
Just tried it as admin still same error: 0x800401f3 - Invalid class string :headwall:

Re: AutoHotkey.dll and COM interface setup issue

Posted: 22 Mar 2018, 03:35
by Xeo786
HotKeyIt wrote:Try running regsvr32 from cmd as Administrator!
First I have uninstall registry then clean registry with cccleaner it get some com registry error which it deleted/cleaned
after that I register dll with admin mode then I got com interface working....

Thanks you HotkeyIt ...

I wana know how would those thread exchange data between them ? just like following script that sub thread get data to min script or how can I have a global library for sub thread


following script is not working as it is the idea what I wana accomplish

Code: Select all

script3 =
(
#Include, D:\PL Open Multi Threading\Reopn Lib.ahk
val := PL_MultiThread("1430029")
)

AhkCom := ComObjCreate("AutoHotkey.Script")
AhkCom.ahktextdll(script3)
MsgBox % val
;~ While AhkCom.ahkReady()
Sleep, 100
MsgBox exiting now