Blocking chatter on different keys

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
pomegranate
Posts: 2
Joined: 05 Oct 2022, 20:46

Blocking chatter on different keys

Post by pomegranate » 05 Oct 2022, 20:51

Hi all, I have an issue with three of my keyboards (all having the same batch manufacturing issue...) that register presses on separate keys before/after a specific keypress, specifically:
1. When I press Backspace, it would sometimes register 1 then Backspace or Backspace then 1
2. When I press T, it registers T then Z or Z then T

A normal keyboard chatter block doesn't work for this as the keys are different and sometimes the actual keypress registers after the incorrect one is triggered.

Does anyone have a script that can suppress this? Thanks!

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

Re: Blocking chatter on different keys

Post by mikeyww » 06 Oct 2022, 06:37

Welcome to this AutoHotkey forum!

There is another script recently posted showing a correction for this. I believe that it was when the keyboard inserted / upon pressing a different key.

A basic squelch: viewtopic.php?p=482808#p482808

pomegranate
Posts: 2
Joined: 05 Oct 2022, 20:46

Re: Blocking chatter on different keys

Post by pomegranate » 08 Oct 2022, 04:25

mikeyww wrote:
06 Oct 2022, 06:37
Welcome to this AutoHotkey forum!

There is another script recently posted showing a correction for this. I believe that it was when the keyboard inserted / upon pressing a different key.

A basic squelch: viewtopic.php?p=482808#p482808
Thanks for this! I modified your script (shown below) and confirmed that it works. However, I still can't solve my issue of '1' getting registered before the Backspace when I am only pressing Backspace. I see two possible solutions to this:
1. If '1' and 'Backspace' are pressed within N milliseconds of each other, register only the Backspace
2. While 'Backspace' is being pressed down, suppress '1' -- although I feel this solution may lead to some unintended conflicts.

How can I code these in AHK? Thanks for your help :)

Code: Select all

#SingleInstance Force

~Backspace Up::end := A_TickCount + 15
#If (A_TickCount < end)
1::Return
#If

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

Re: Blocking chatter on different keys

Post by mikeyww » 08 Oct 2022, 04:59

Perhaps:

Code: Select all

~Backspace::end := A_TickCount + 25
#If (A_TickCount < end)
1::Return
#If

Post Reply

Return to “Ask for Help (v1)”