Solved

Register AutoHotkey

Posted on 2016-11-09
12
53 Views
Last Modified: 2016-11-09
I tried to run the code shown below as an administrator, but I got a “the module autohotkey.dll” error. An image of the error is attached. Any assistance to resolve the problem would be appreciated.

regsvr32.exe autohotkey.dll

Open in new window

Error
0
Comment
Question by:Mark01
  • 5
  • 4
  • 2
  • +1
12 Comments
 
LVL 28

Assisted Solution

by:Michael Pfister
Michael Pfister earned 90 total points
ID: 41880542
Where is autohotkey.dll stored in the file system? Add that path to your command, i.e.
regsvr32 C:\Windows\system32\autohotkey.dll

If the path contains space characters surround the entire path with quotes
0
 
LVL 37

Assisted Solution

by:Gerwin Jansen
Gerwin Jansen earned 50 total points
ID: 41880579
Try running it from an administrative command prompt.
0
 
LVL 52

Expert Comment

by:Joe Winograd, EE MVE
ID: 41880602
Which version of AutoHotkey are you using for the AutoHotkey.dll module? I'm guessing AutoHotkey_H, in which case, read this:
https://hotkeyit.github.io/v2/docs/AutoHotkeyDll.htm

Btw, you may find this alternative approach helpful:
https://github.com/amazing-andrew/AutoHotkey.Interop

Regards, Joe
0
 

Author Comment

by:Mark01
ID: 41880624
@Michael Pfister: I searched the “c” drive for autohotkey.dll, but I did not find it.
@Gerwin Jansen: I did run the batch file as administrator.

I'll try Joe Winograd's suggestions next.
0
 
LVL 28

Expert Comment

by:Michael Pfister
ID: 41880638
You have to copy the autohotkey.dll to the system before trying to register it.
0
 
LVL 52

Expert Comment

by:Joe Winograd, EE MVE
ID: 41880655
> I searched the “c” drive for autohotkey.dll, but I did not find it.

A normal installation of AutoHotkey (as discussed in my article), does not install AutoHotkey.dll (it installs AutoHotkeyU64.exe, AutoHotkeyA32.exe, AutoHotkeyU32.exe, Ahk2Exe.exe, and other files in c:\Program Files\AutoHotkey\, but not AutoHotkey.dll). Regards, Joe
0
Don't lose your head updating email signatures!

Do your end users still have the wrong email signature? Do email signature updates bore you or fill you with a sense of dread? You can make this a whole lot easier on yourself by trusting an Exclaimer email signature management solution. Over 50 million users do...so should you!

 

Author Comment

by:Mark01
ID: 41880791
@Michael Pfister: Where do I copy the autohotkey.dll from?

@Joe Winograd: I read your article but I did not find anything about the location of the autohotkey.dll. Your link to the article about the AutoHotkey module did mention the AutoHotkey COM Interface. Here is the text from that link:
AutoHotkey COM Interface: AutoHotkey.dll can be also loaded and manipulated using its COM Interface. Before using this Interface, AutoHotkey.dll needs to be registered.
0
 
LVL 52

Expert Comment

by:Joe Winograd, EE MVE
ID: 41880813
> I read your article but I did not find anything about the location of the autohotkey.dll.

It's not in the article because it doesn't get installed as part of a standard AutoHotkey installation, as I said in my previous post. You need to get it as described in my post before that one.

Btw, what are you trying to accomplish that requires AutoHotkey.dll?
0
 

Author Comment

by:Mark01
ID: 41880861
I would like to use a VB.net program to run a script.

I read the article but I do not know how to get it.
Article:
https://hotkeyit.github.io/v2/docs/AutoHotkeyDll.htm#COMInterface
0
 
LVL 52

Accepted Solution

by:
Joe Winograd, EE MVE earned 360 total points
ID: 41880889
As shown in one of my my earlier posts, the download for V1 (stable) is here:
https://github.com/HotKeyIt/ahkdll-v1-release/archive/master.zip

The download for V2 (alpha) is here:
https://github.com/HotKeyIt/ahkdll-v2-release/archive/master.zip

AutoHotkey.dll is in both ZIP downloads (32-bit and 64-bit in both). And if you want the source code, the download page is here:
https://github.com/HotKeyIt/ahkdll/tree/alpha

Thanks for this idea — I may add something about this to my AHK article. Regards, Joe
0
 

Author Closing Comment

by:Mark01
ID: 41880983
I copied the file to C:\Program Files\AutoHotkey and I ran the following command: regsvr32 "C:\Program Files\AutoHotkey\AutoHotkey.dll"

Thank you, Joe, Michael and Gerwin.
0
 
LVL 52

Expert Comment

by:Joe Winograd, EE MVE
ID: 41880995
You're welcome, Mark. Good luck with the project! Regards, Joe
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
In this article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now