mirror of
https://github.com/evilC/AutoHotInterception.git
synced 2024-11-18 15:26:08 +00:00
23 lines
478 B
AutoHotkey
23 lines
478 B
AutoHotkey
#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
|
|
} |