1

I am looking for a program for Microsoft Windows 7 that can prevent the user from inputting the same key twice in less than X milliseconds. The set of keys for which this limitation applies to should be configurable.

Any price and license is fine.

0

You can use the following AutoHotKey script (gratis, Microsoft Windows). The variable keylist contains all keys the repeat rate of which should be limited. The repeat limit is set to 200.

; Thanks engunneer: autohotkey.com/board/topic/45636-script-to-prevent-double-typing/?p=284048
; Thanks throwaway_ye: https://www.reddit.com/r/AutoHotkey/comments/54g40q/how_can_i_bind_several_keys_to_the_same_command/d81j0we

; The following part must be located in the auto-execute section, 
; i.e. the top part of the AHK script.

keylist = 1234567890qwertzuiopasdfghjklyxcvbnm

Loop, parse, keylist
{
  Hotkey, $%A_LoopField%, spamLimitNoParam
}    
Return


; This can be located anywhere in the AHK file
spamLimitNoParam:
spamLimit(200)
Return

spamLimit(limitTime)
{
    StringReplace, key, A_ThisHotkey, $, , All
    send %key%
    sleep limitTime    
}

FYI:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.