Disable keyboard button if another is pressed Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
nop1234
Posts: 1
Joined: 27 Nov 2021, 11:27

Disable keyboard button if another is pressed

Post by nop1234 » 27 Nov 2021, 11:31

My keyboard autopresses F11 when I press "t", "o" and "n" at the same time. And autopresses "." if I press down "n", "o" and "e".

Pretty sure it's a mechanical issue. What functions can I use that disable the F11 key if it detects me pressing t,o,n and disables "." if I press n,o,e? Thank you.

User avatar
mikeyww
Posts: 26883
Joined: 09 Sep 2014, 18:38

Re: Disable keyboard button if another is pressed  Topic is solved

Post by mikeyww » 27 Nov 2021, 12:17

Code: Select all

$F11::Send % GetKeyState("t", "P") & GetKeyState("o", "P") & GetKeyState("n", "P") ? "" : "{F11}"

Post Reply

Return to “Ask for Help (v1)”