[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Register AutoHotkey

Posted on 2016-11-09
12
Medium Priority
?
142 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 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 57

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 57

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 57

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 57

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 57

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

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.

Question has a verified solution.

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

This article is about my experience upgrading my consulting machine to Windows 10 Version 1709 (The Fall 2017 Creator Update)
Most folks would know the basics of how Dropbox works, so that’s not the purpose of this article. Security is what it’s all about, so here I’ll share how I choose to secure my Dropbox Account and the Data it contains.
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
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
Course of the Month20 days, 7 hours left to enroll

868 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