Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Register AutoHotkey

Posted on 2016-11-09
12
Medium Priority
?
132 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
  • 2
  • +1
12 Comments
 
LVL 29

Assisted Solution

by:Michael Pfister
Michael Pfister earned 360 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 38

Assisted Solution

by:Gerwin Jansen, EE MVE
Gerwin Jansen, EE MVE earned 200 total points
ID: 41880579
Try running it from an administrative command prompt.
0
 
LVL 56

Expert Comment

by:Joe Winograd, EE MVE 2015&2016
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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

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 29

Expert Comment

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

Expert Comment

by:Joe Winograd, EE MVE 2015&2016
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 56

Expert Comment

by:Joe Winograd, EE MVE 2015&2016
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 56

Accepted Solution

by:
Joe Winograd, EE MVE 2015&2016 earned 1440 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 56

Expert Comment

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

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

618 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