Add AutoHotkey.dll to Visual Basic as ressource

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
KoHx3
Posts: 13
Joined: 08 Jan 2017, 09:13

Add AutoHotkey.dll to Visual Basic as ressource

27 Jan 2017, 14:53

Hey guys,
I'm using Ahk with Visual Basic and want to 'import' the .dll into my Project (.exe) and call it from there to make my program useable for PC's without ahk installed.
I dont want to manually register the .dll to make it useable - any Ideas?
Cause I cant get it working if I add the .dll as a resource. May I'm just stupid :wave:
burque505
Posts: 1736
Joined: 22 Jan 2017, 19:37

Re: Add AutoHotkey.dll to Visual Basic as ressource

27 Jan 2017, 19:01

Hi,
I'm really new it this myself, but I do have a couple of things working.

You _might_ try adding either AutoHotkey.Interop.dll or AutoHotKey.dll as a reference (Project -> Add Reference, browse to the appropriate .DLL).
In one project I just added AutoHotkey.Interop.dll and added "Imports AutoHotkey.Interop" at the top.
In another I added AutoHotKey.dll as a reference, no import statement. Both work.
You can also build it along with your project from source and use it as a dependency, I'm pretty sure.

One caveat: I do have the .dlls registered, but I also have other projects NOT in VB, just AHK, that work registered and unregistered depending on the project.
Good luck! I'd like to know what your results are.

Burque505
KoHx3
Posts: 13
Joined: 08 Jan 2017, 09:13

Re: Add AutoHotkey.dll to Visual Basic as ressource

16 Jun 2017, 08:52

Oh hey Burque,
I forgot that I asked for this project about this situation. lol
Actually I added it as a reference but this wont work.
AutoHotKey.Interop.dll? What? :o
Imports didnt worked and also just reference. That's very strange because this isn't usual..

Btw. things just working with registered.dll but not with unregistered one.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Chunjee, inseption86, jaka1 and 290 guests