How to automatically correct text while you type or replace strings


You probably have some typos you do over and over again? If so, you can use AutoHotkey to simply correct your text even while you type or replace a string.

Correct text while you type

Useful Uses

  • Let’s say you don’t want to use abbreviations like btw, you can let AutoHotkey replace it while you type with “by the way”
  • Or if you have a common typo like Morrowing, you can tell AHK to auto-correct it and write Morrowind instead.
  • I always type 1.,2.,3. when I write tutorials and then use an editor to make the number bold. Now, because that are unnecessary clicks and work you can simply let AutoHotkey do some work for you.

Code To Correct Text, Replace Text, Fix Typos

 

1. Download and install AutoHotkey, website is http://www.autohotkey.com/(Download Installer for AutoHotkey Basic)

2. Open the AuthotKey.ahk with a right-click on system tray icon and then on Edit This Script

Edit autohotkey script ahk

3. Insert the code. Here are the examples mentioned above:

::btw::by the way
::Morrwing::Morrowind
::1`.::1.
::2`.::2.
::3`.::3.
::4`.::4.
::5`.::5.
::6`.::6.
::7`.::7.
::8`.::8.
::9`.::9.

The first one will replace btw, the second one the typo Morrowing and the other replace numbers with HTML formatting.

The period sign in AutoHotkey needs to be escaped (same as most other programming languages). The escape character for that is `

Yes, it’s really easy to replace text or auto-correct it, that’s why I recommend to take 5 minutes and create a really long list of useful replacements and corrections.

 


Or you might like these sexy wallpaper, tweaks and themes:

Written by oliversk Thursday, December 1st, 2011

Was it helpful? Please bookmark it and spread the word

delicious   facebook   google   twitter  

You love Windows, Gaming and everything digital? Great, we too! We have thousands of great Windows 7 themes, registry tweaks, tutorials, so please use our search box if you look for anything specific. If you have some awesome desktop themes, tips or want to write for us, then drop us a mail: win7themes at googlemail.com

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>