Solved

Register AutoHotkey

Posted on 2016-11-09
12
73 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, EE MVE
Gerwin Jansen, EE MVE 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
DevOps Toolchain Recommendations

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

 

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
 

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Storage devices are generally used to save the data or sometime transfer the data from one computer system to another system. However, sometimes user accidentally erased their important data from the Storage devices. Users have to know how data reco…
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

810 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