0

Keyboard of my good old Dell Latitude D530 is very old and different keys start to be broken... the ] key close to Enter became super sensitive - it triggers even when I touch it only very very slightly... So it triggers every time I just move my fingers around, which is very annoying. Don't know what to do about this, I tried to clean everything under the key but it didn't help.

So, I though, would it be possible to write an Autohotkey script such that the key would trigger only if held for certain (pre-defined) time?

  • 2
    These keyboard go bad real quick from personal experience. Any real reason why you can't buy a new keyboard? They are less than 20$ USD on ebay from china. You can also use a USB keyboard and disable the old one meanwhile. – Natsu Kage Jan 25 at 16:45
  • @NatsuKage new keyboard for old Dell Latitude D530? They are still selling it? :-o – Tomas Jan 25 at 16:55
  • 2
    Yes. Of course not from Dell directly though. This was a popular laptop, so many parts are available. ex: ebay.com/itm/… – Natsu Kage Jan 25 at 16:57
  • Yep, new keyboard is best solution. – Moab Jan 25 at 17:05
  • thanks guys. But anyway, some temporary solution would come in handy. What about the Autohotkey script? – Tomas Jan 25 at 17:09
1

Hold the ] key for more than 0.2 seconds to send it:

$]::                   ; the dollar prefix forces the keyboard hook to be used
    KeyWait, ], T0.2  ; wait 0.2 seconds for ] to be released
    If (!ErrorLevel)  ; if the command isn't timed out 
        return        ; do nothing
    Send ]            ; otherwise send the key 
return
  • Amazing, thanks!! – Tomas Jan 26 at 11:53

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.