evilC / AutoHotInterception

An AutoHotkey wrapper for the Interception driver
MIT License
707 stars 64 forks source link

If you enter the X key, the hot key will not be activated. #115

Open KorRoman9789 opened 1 month ago

KorRoman9789 commented 1 month ago

include Lib\AutoHotInterception.ahk

InstallKeybdHook

Global AHI := new AutoHotInterception() Global KeyBoard_ID := "5"

$*x:: while (GetKeyState("x", "P")) { scancode := 0x2D

    AHI.SendKeyEvent(KeyBoard_ID, scancode, 0) 
    Sleep, 10 

    AHI.SendKeyEvent(KeyBoard_ID, scancode, 1) 
    Sleep, 10 
}

return

exitapp