evilC / AutoHotInterception

An AutoHotkey wrapper for the Interception driver
MIT License
734 stars 66 forks source link

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

Open KorRoman9789 opened 3 months ago

KorRoman9789 commented 3 months 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