You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
478 B
Plaintext
23 lines
478 B
Plaintext
7 years ago
|
#include %A_LineFile%\..\CLR.ahk
|
||
|
|
||
|
AutoHotInterception_Init(){
|
||
|
dllFile := A_LineFile "\..\" "AutoHotInterception.dll"
|
||
|
if (!FileExist(dllFile)){
|
||
|
MsgBox % "Unable to find " dllFile ", exiting..."
|
||
|
ExitApp
|
||
|
}
|
||
|
|
||
|
asm := CLR_LoadLibrary(dllFile)
|
||
|
try {
|
||
|
Interception := asm.CreateInstance("InterceptionWrapper")
|
||
|
}
|
||
|
catch {
|
||
|
MsgBox Interception failed to load
|
||
|
ExitApp
|
||
|
}
|
||
|
if (Interception.Test() != "OK"){
|
||
|
MsgBox Interception Test failed
|
||
|
ExitApp
|
||
|
}
|
||
|
return Interception
|
||
|
}
|