SEnse and REmove INstances of 2 CApital LEtters BEginning a WOrd

1

1

Is there an AutoHotkey script that can sense if I accidentally hold down shift too long if I start a word with a capital letter? Microsoft word does this automatically, but I would like it system-wide. The script should be smart enough to tell if I'm typing something in all caps or if I actually made a mistake.

snitzr

Posted 2010-08-07T00:28:55.423

Reputation: 1 972

how would it know the difference between an accidentally capitalized two letter word and an intentionally all caps two letter word? – bryan – 2010-08-07T00:49:13.417

That's what I'm wondering about. I don't know. – snitzr – 2010-08-07T01:00:18.137

@bryan: Two-letter words should just be ignored by the script. Only 2 capitals followed by at least 1 lowercase should be corrected. Words that are supposed to have 2 capitals and then a lowercase are rare enough that you can make special cases for them. I have special cases for things like UPnP MWh NiCd VoIP DjVu S/PDIF, etc anyway so that I don't have to wrestle with the Shift key or remember the correct capitalization/punctuation. – endolith – 2013-05-15T16:23:03.787

Answers

1

The AutoHotkey help file page about "Hotstrings & auto-replace" contains a download link to AutoCorrect.ahk by Jim Biancolo that preforms AutoCorrect features system-wide.

In the script, the correction of two consecutive capitals is commented out by default, but you can remove the /* and */ lines around it to enable it.

Bavi_H

Posted 2010-08-07T00:28:55.423

Reputation: 6 137

There are probably better solutions. This one is Disabled by default to prevent unwanted corrections such as IfEqual->Ifequal. But IfEqual is not a double capitalization, so should be ignored by any such script anyway. – endolith – 2013-05-15T16:19:49.660