Surprising AutoHotkey Hotstrings

We Tend to Take for Granted the Basic AutoHotkey Hotstring Without Investigating Its Full Potential

One of the first things a beginner learns about AutoHotkey is its easy implementation of Hotstrings—the simple technique for adding text replacement and text expansion to any AutoHotkey script. It’s used primarily for AutoCorrect apps, but is largely overlooked for more involved scripts. In most of my previous books, I was sure to include something about Hotstrings, but it was never my chief focus. Continue reading

An AutoHotkey “Duh!” Moment

Every So Often You Slap Yourself on the Side of the Head When You Realized How Simple It Really Was!

Maybe it’s just me, but do you ever find yourself spending hours (or possibly days) on a problem only to later find an easy solution staring you right in the face? Possibly, you developed a working solution—but it was  a little convoluted. Maybe, if you had leaned back, relaxed, and rethought the situation, you would have seen your error and never charged off into the coding bog. When the truth comes out, it’s always a little embarrassing. Continue reading

Deleting Double Words with AutoHotkey Regular Expressions (RegEx)

When Too Many Identical Chapter Numbers Appear in the E-Book Index, It’s Time for Another AutoHotkey RegEx. Includes How to Use a Backreference!

The AutoHotkey Regular Expression from last time which converts ambiguous numbers to chapter names in an e-book index works well. When the first RegExReplace() function does its job, all of the link numbers are converted to the chapter names, as shown below. However, you can see the problem. Continue reading

A Perfect Place to Use an AutoHotkey Regular Expression (RegEx in Text Replacement)

Occasionally, You Run into a Search-and-Replace Problem that Cries Out for an AutoHotkey RegEx (Regular Expression). But Is Learning How to Use Regular Expressions Worth Your Time? You Decide! Here’s a Real Problem and a Beginner’s Mini-Tutorial for Solving It with RegEx.

Regular Expressions (RegEx) are not something that immediately make sense to anyone—especially if you have never used them before. Even if you understand how they work, it’s not always easy to know where to apply them. Continue reading