AutoHotkey

by Aug 23, 2010Tech3 comments

One of my favorite little programs is AutoHotkey. You can write nearly any macro script you can think of to perform nearly any task you do often.

I’ll give one example. I found that I was regularly having to find my tagged link for Amazon books, copy it, and paste it into a blog post or e-mail.

So I wrote a little script that would just print it out for me, and I assigned it to Alt+F10:

http://www.amazon.com/dp/ISBNHERE/?tag=marklwardjr-20

When I needed the link, I would go to Amazon, grab the ISBN for the book I was linking to, and manually put it where the link says “ISBNHERE.”

Then I realized that I might as well grab the ISBN first, then have AutoHotkey paste it in for me:

http://www.amazon.com/dp/^v/?tag=marklwardjr-20

Notice that instead of “ISBNHERE” I have “^v”—that stands for Ctrl+V, which pastes whatever’s in the clipboard into my link. So now I get this when I hit Alt+F10:

http://www.amazon.com/dp/0876633963/?tag=marklwardjr-20

Here’s the AutoHotkey script:

!F10::Send http://www.amazon.com/dp/^v/?tag=marklwardjr-20

I have scripts for creating em dashes and other common symbols, switching Unicode keyboards, and lots of other common tasks.

Read More 

Review: Andy Crouch’s The Tech-Wise Family

Andy Crouch is among the first parents to have nurtured children from clearly-too-young-to-have-a-smartphone to now-old-enough, during a time in which smartphones were in fact available for that whole period. It's only been ten years since the iPhone's debut. And in...

Review: 12 Ways Your Phone is Changing You

12 Ways Your Phone is Changing You by Tony Reinke My rating: 5 of 5 stars The best way to summarize this book is probably to let the author do it. In the last twelve chapters, I have warned against twelve corresponding ways in which smartphones are changing us and...

Cool New Way to Use the Best Word Processor

I love Google Docs. I live by Google Docs. I can't believe I ever lived with anything else. It strikes just the right balance between simplicity and power. It's made for writers like me who constantly need to send out documents for edits and comments without causing a...

Leave a comment.

3 Comments
  1. James

    And (as a good friend told me once before) Spark is a great program for the same functions on a Mac – assign shortcut keys to text strings, AppleScripts, application shortcuts, etc.

  2. Mark L Ward Jr

    Right! I like Spark, too! It has a much nicer user interface, like almost all Mac OSX programs.

  3. Jeremiah

    On OSX,
    option – = – (en dash)
    option shift – = — (em dash)
    option ; = … (ellipsis)

    That’s with a standard keyboard layout, of course.