AutoHotkey.dll and COM interface setup issue

Ask for help, how to use AHK_H, etc.
User avatar
Xeo786
Posts: 189
Joined: 09 Nov 2015, 02:43
Location: Karachi, Pakistan

AutoHotkey.dll and COM interface setup issue

20 Mar 2018, 06:49

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 ....
"When there is no gravity, there is absolute vacuum" -Game changer theory
HotKeyIt
Posts: 1705
Joined: 29 Sep 2013, 18:35
Contact:

Re: AutoHotkey.dll and COM interface setup issue

20 Mar 2018, 09:46

Try running regsvr32 from cmd as Administrator!
User avatar
Xeo786
Posts: 189
Joined: 09 Nov 2015, 02:43
Location: Karachi, Pakistan

Re: AutoHotkey.dll and COM interface setup issue

21 Mar 2018, 02:29

Just tried it as admin still same error: 0x800401f3 - Invalid class string :headwall:
"When there is no gravity, there is absolute vacuum" -Game changer theory
User avatar
Xeo786
Posts: 189
Joined: 09 Nov 2015, 02:43
Location: Karachi, Pakistan

Re: AutoHotkey.dll and COM interface setup issue

22 Mar 2018, 03:35

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
"When there is no gravity, there is absolute vacuum" -Game changer theory

Return to “Ask For Help”

Who is online

Users browsing this forum: No registered users and 5 guests