Open hsayed21 opened 1 year ago
Double-check that you are getting a value in mouseId
The "No such interface supported" error usually means you have an empty parameter
I simplified it to be Unsubscribe only but when clicking on buttons touchpad it clicks normal not disabled
#SingleInstance force
#Persistent
#include Lib\AutoHotInterception.ahk
AHI := new AutoHotInterception()
mouseId := AHI.GetMouseId(0x0000, 0x0000)
AHI.UnsubscribeMouseButtons(mouseId)
return
^Esc::
ExitApp
I would not be surprised if mouseId := AHI.GetMouseId(0x0000, 0x0000)
did not work (ie passing a VID and PID of 0).
The monitor is likely showing 0 for VID and PID because it cannot get them.
Use the handle instead: mouseId := AHI.GetDeviceIdFromHandle("ACPI\VEN_SYN&DEV_2B96")
This is after the change with handle
, touchpad click also work
My script for testing on
Notepad
Error:
@evilC