Disable B key in PowerPoint

Get help with using AutoHotkey and its commands and hotkeys
telemach
Posts: 1
Joined: 01 Apr 2019, 15:11

Disable B key in PowerPoint

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

Code: Select all

b::
If	(DllCall("GetAsyncKeyState", "int", 0x42, "ushort") >> 15) {
	Hotkey, b,, Off
	SendInput, b
	Hotkey, b,, On
}
Return

a::SendInput, b
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

Return to “Ask For Help”

Who is online

Users browsing this forum: boiler, Evil-e, Google [Bot], JensHaglof, Meow, Wechselbruecke and 135 guests