Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use fake email addresses a lot when filling out test forms, and I've got an AHK snippet that spits out the part of an email address for me when I hit `m:


The problem is that I have to hit space between the username part of the email address and my backtick key combination, or else AHK doesn't recognize that I'm trying to trigger a replacement. I want to be able to type joeuser[backtick]m instead of joeuser[space][backtick]m and get

I know this is a minor, silly trivial thing (and I've got a temporary workaround that uses a {Backspace} to remove the space), but the workflow makes much more sense to me without the space.

share|improve this question
up vote 3 down vote accepted

Sounds like you are looking for the ? option:

? (question mark): The hotstring will be triggered even when it is inside another word; that is, when the character typed immediately before it is alphanumeric. For example, if :?:al::airline is a hotstring, typing "practical " would produce "practicairline ". Use ?0 to turn this option back off.

So, like this:



share|improve this answer
The AHK documentation is rather dense, so thanks for pointing that out to me. Works perfectly! – Curtis Gibby Nov 30 '12 at 19:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .