Disable B key in PowerPoint
Posted: 01 Apr 2019, 15:22
I have simple wireless presenter that registers with Windows as a HID keyboard and sends B key if long pressed. I would love to disable this B in PowerPoint but it's not an option so I am using this
https://autohotkey.com/board/topic/38015-ahkhid-an-ahk-implementation-of-the-hid-functions/
to replace B with other key
problem is that it's not working like it should and affects also physical keyboard in my laptop
is it possible to pass HID VID PID name to script so it would know desired keyboard ?
Moderator Note: Added code tags. ~ sinkfaze
https://autohotkey.com/board/topic/38015-ahkhid-an-ahk-implementation-of-the-hid-functions/
to replace B with other key
Code: Select all
b::
If (DllCall("GetAsyncKeyState", "int", 0x42, "ushort") >> 15) {
Hotkey, b,, Off
SendInput, b
Hotkey, b,, On
}
Return
a::SendInput, b
is it possible to pass HID VID PID name to script so it would know desired keyboard ?
Moderator Note: Added code tags. ~ sinkfaze