Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

error loadlibrary autohotkey.dll


  • Please log in to reply
1 reply to this topic
path000
  • Members
  • 1 posts
  • Last active: Nov 15 2014 07:40 PM
  • Joined: 15 Nov 2014

hey all :)

i have a problem :(

 

can't loadlibrary autohotkey.dll :(

 

code is

 

HINSTANCE handle = LoadLibrary("C:\\Windows\\System32\\AutoHotkey.dll");

 

returned NULL :(

 

so i tested LoadLibrary( "ntdll.dll" )

is not returned NULL :)

 

anyone know this problem ?

 

+

my os is w7 64 bit and using visual studio 2013 community



HotKeyIt
  • Moderators
  • 7439 posts
  • Last active: Jun 22 2016 09:14 PM
  • Joined: 18 Jun 2008

Make sure the file exists.

Also make sure that you use 64-bit Autohotkey.dll for 64-bit process and 32-bit for 32-bit processes.

 

To test you can extract latest zip to a folder and create AutoHotkey.ahk in same location where AutoHotkey.exe is and then double click AutoHotkey.exe:

SetWorkingDir % A_ScriptDir
MsgBox % LoadLibrary("AutoHotkey.dll")