evilC / AutoHotInterception

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

Everything like left UP:: in the code below gives an error. #118

Open leventbaris3535 opened 2 days ago

leventbaris3535 commented 2 days ago

Requires AutoHotkey v2.0

Include Lib\AutoHotInterception.ahk

AHI := AutoHotInterception() keyboardId := AHI.GetKeyboardId(0x046D, 0xC534) cm := AHI.CreateContextManager(keyboardId)

HotIf cm.IsActive

Left UP::Media_Prev Right UP::Media_Next *Space UP::Media_Play_Pause

Left Down::Media_Prev Right Down::Media_Next *Space Down::Media_Play_Pause

HotIf

leventbaris3535 commented 2 days ago

Error: Invalid hotkey.

Specifically: Left UP up

010: {
010: SetKeyDelay(-1),Send("{Blind}{Media_Prev DownR}")

▶ 010: }

The program will exit.