Windows autocorrect- Auto-replace text in any Windows program with a Hotstring from AutoHotKey

windows autocorrect Windows Autocorrect– Auto-replace an abbreviation with full text in any windows program

Years ago I realized I was frequently typing the same thing over and over. For a while I used autocorrect in Microsoft Word which was helpful but had limitations (one huge one is that it only worked in Word). AutoHotKey is a free scripting program that allows you to do an amazing amount of things; one of which is how to use Hotstrings to autocorrect text in any windows program via Hotstrings.

I have hundreds of Hotstrings which allow me to type a few letters and have them, automatically, replaced with the full word, sentence, paragraph, etc.   Below is a simple example where I want to type my main website domain.  Instead of typing the entiere thing out I just type tac. which is quickly replaced with  http://the-automator.com

The second example is one where I want to have line-breaks inserted (This is my template when starting a new AutoHotKey script.)  I simply type tst.  and the following “magically” appears in its place via windows autocorrect.

The below video outlines how I use hotstrings to reduce the amount of mundane work that I have to do.  It is amazing how much time you can save once you get used to using them!  Remember your Hotstrings (windows autocorrect) will work in any Windows program!  Did I mention it was free?  What more could you ask for?

Hotstrings (Auto-replace text in any program)

Windows autocorrect is just one of many amazing things you can do with AutoHotKey however hotstrings is a great, easy, way to start down the path of automation and efficiency!

Windows autocorrect- Use AutoHotKey to replace text in any Windows program

windows autocorrect

Windows autocorrect- Adding hotstrings in AutoHotKey

For about 20 years I loved using autocorrect feature in Word and Excel to help me write commonly used phrases.  Unfortunately, at that time, MS office didn’t sync across programs so I had to maintain my list of corrections in each program.  Worse yet; I also had to repeat it on every computer that I used.

About a decade ago I read an article which mentioned AutoHotKey had built in “Hotstrings” which provided a similar functionality but would work in any windows program.  (AutoHotKey has a ton of other great features but this is the one that has the largest appeal to the most users.)

I think of hotstrings and a windows autocorrect.  Used intelligently you can tell the computer when I type a few letters, replace the abbreviation I just typed with a full sentence, paragraph, etc.  It is fairly easy to add Hotstrings in AutoHotKey however there is a script which speeds-up the process.  The below video walks through the process.

Adding HotStrings in AutoHotKey

Text Expander with AutoHotkey for HotStrings with Long Replacement Text

Text Expander windows autocorrectHotStrings with AutoHotkey are a Text Expander that:

  • Quickly get you to be more efficient
  • Reduce likelihood of Carpal Tunnel
  • Improve Accuracy/Reliability you use correct content

While HotStrings are very easy to add and use, I take a little different approach when the text I’m inserting is long (over a couple of lines).   Using the Join command for long text can greatly help readability of your code as well as do some fun manipulation.  Here is the code I work through in the below video

And this Text Expander with AutoHotkey for HotStrings with Long Replacement Text

Long HotStrings _ Continuation Section & Join command in AutoHotkey