Advertising
Advertising

10 Ways to Use AutoHotKey to Rock Your Keyboard

10 Ways to Use AutoHotKey to Rock Your Keyboard
AutoHotKey

If you are into productivity on your computer, you probably already use your keyboard and its shortcuts as much as possible. And if you’re on Windows, you’ve probably also check out the awesome potential of AutoHotKey, which can make your keyboard hum like nobody’s business.

But most people haven’t tapped into the true power of AHK, and explored all the ways it can turn the keyboard into a productivity machine.

For Mac users, you already have the fantabulously wonderful Quicksilver, and if that doesn’t completely meet your needs, try TypeIt4Me for text expansion.

To learn more about setting up AHK scripts, text expansion, shortcut keys, macros and more, see this tutorial.

Here are 10 ways to use AutoHotKey to rock your keyboard:

Advertising


1. Multiple sigs. If you use different signatures for work, personal use, blogging, etc., use AHK’s super handy text replacement feature to make shortcuts for each sig. For example, I have wsig and wsig2 for my two different work signatures, bsig for my blog signature, and psig and psig2b for my two different personal signatures. Type in 3 or 4 keystrokes, and it automatically expands to your full signature.

Example:
::wsig::Your Name{enter}Your Title{enter}Your Company Name{enter}Your Contact Info

2. Favorite folders. Do you open a few folders several times a day? End the endless double-clicking by setting up shortcuts to your favorite folders. I have about 5 folders I use every day, and their shortcuts save me loads of time. The following example sets up the Windows key + 0 to open a folder (the “#” symbol stands for Windows key in AHK scripting language).

Example:
#0::Run C:\Documents and Settings\YourUsername\My Documents\YourFolder\YourSubfolder

3. Websites. Do you have favorite sites or pages that you go to numerous times a day? We all do. While Firefox has a great keyword bookmarking feature, AHK’s shortcut keys are even faster. I have about 10 sites set up for all my favorite web pages.

Advertising

Example:
#l::Run http://www.lifehack.org

4. App launcher. Throw away your favorite app launcher. AHK eliminates the need for a separate program for launching applications, because you can tie any application to any keyboard shortcut.

Example:
#f::Run Firefox

5. Common documents. You’re starting to see the theme here. Any documents you use often, such as a letter template or certain spreadsheets, can also be given shortcuts.

Example:
#4::Run C:\Documents and Settings\YourUsername\My Documents\YourFolder\Letter.doc

Advertising

6. Common emails. If you type a lot of the same emails, day in and day out, set up simple text expansion scripts (such as the signature example above) and put in the text of your common emails. See this article for more info.

7. Autocorrect in any application. Blogger Jim Biancolo used Wikipedia’s list of the most common misspellings as a starting point to create this script, which autocorrects your misspelled words as you type — in any application. He added to the list the autocorrected words in Microsoft Word, plus a bunch of his own common misspellings. Very handy.

8. Quick Google or Wikipedia searches. Again, Firefox has the very cool smart keyword search feature, but AHK can put your common searches in any app. Highlight the work, press you hotkey, and voila! The following scripts allow the user to search for a particular word or phrase using Google or Wikipedia. After selecting the text from any application, pressing the configurable hotkey (Win + g for Google search, Win + w for Wikipedia) will open the default browser and perform the search.

Example:
#g:: Send, ^c Run, http://www.google.com/search?q=%Clipboard% Return
#w:: Send, ^c Run, http://en.wikipedia.org/wiki/Special:Search?search=%Clipboard% Return

9. Blogging markup. If you do a lot of blogging or html coding, you know that typing html codes or having to press buttons to put the codes in can be very repetitive. Automate it by having AHK automatically type the beginning and ending codes for you. Then all you gotta do is write great content. Adam Pash compiled a handy little script for bloggers here.

Advertising

10. Use Insert for Clipboard tool. I don’t know about you, but I never use the Insert key — in fact, it just messes me up. Biancolo did this little script to remap the Insert key to give it some super-useful functionality: it adds whatever you have highlighted to the clipboard.

For even cooler scripts, see this list for ways to configure or enhance your keyboard.

What are your favorite ways of using AHK? Let us know in the comments.

More by this author

Leo Babauta

Founder of Zen Habits and expert in habits building and goals achieving.

The Gentle Art of Saying No for a Less Stressful Life How to Find Your Passion and Live a Fulfilling Life 67 Ideas to Simplify Your Life and Feel Better Today What to Do in Free Time? 20 Productive Ways to Use the Time Simple Productivity: 10 Ways to Do More by Focusing on the Essentials

Trending in Featured

1 15 Tips to Restart the Exercise Habit (and How to Keep It) 2 8 Simple Ways to Be a Better Listener 3 The Art of Humble Confidence 4 How to Learn Something New Every Day and Stay Smart 5 How to Overcome Procrastination and Start Doing What Truly Matters

Read Next

Advertising
Advertising
Advertising

Last Updated on November 18, 2020

15 Tips to Restart the Exercise Habit (and How to Keep It)

15 Tips to Restart the Exercise Habit (and How to Keep It)

It’s okay, you can finally admit it. It’s been two months since you’ve seen the inside of the gym. Getting sick, family crisis, overtime at work and school papers that needed to get finished all kept you for exercising. Now, the question is: how do you start again?
Once you have an exercise habit, it becomes automatic. You just go to the gym, there is no force involved. But after a month, two months or possibly a year off, it can be hard to get started again. Here are some tips to climb back on that treadmill after you’ve fallen off.

  1. Don’t Break the Habit – The easiest way to keep things going is simply not to stop. Avoid long breaks in exercising or rebuilding the habit will take some effort. This may be advice a little too late for some people. But if you have an exercise habit going, don’t drop it at the first sign of trouble.
  2. Reward Showing Up – Woody Allen once said that, “Half of life is showing up.” I’d argue that 90% of making a habit is just making the effort to get there. You can worry about your weight, amount of laps you run or the amount you can bench press later.
  3. Commit for Thirty Days – Make a commitment to go every day (even just for 20 minutes) for one month. This will solidify the exercise habit. By making a commitment you also take pressure off yourself in the first weeks back of deciding whether to go.
  4. Make it Fun – If you don’t enjoy yourself at the gym, it is going to be hard to keep it a habit. There are thousands of ways you can move your body and exercise, so don’t give up if you’ve decided lifting weights or doing crunches isn’t for you. Many large fitness centers will offer a range of programs that can suit your tastes.
  5. Schedule During Quiet Hours – Don’t put exercise time in a place where it will easily be pushed aside by something more important. Right after work or first thing in the morning are often good places to put it. Lunch-hour workouts might be too easy to skip if work demands start mounting.
  6. Get a Buddy – Grab a friend to join you. Having a social aspect to exercising can boost your commitment to the exercise habit.
  7. X Your Calendar – One person I know has the habit of drawing a red “X” through any day on the calendar he goes to the gym. The benefit of this is it quickly shows how long it has been since you’ve gone to the gym. Keeping a steady amount of X’s on your calendar is an easy way to motivate yourself.
  8. Enjoyment Before Effort – After you finish any work out, ask yourself what parts you enjoyed and what parts you did not. As a rule, the enjoyable aspects of your workout will get done and the rest will be avoided. By focusing on how you can make workouts more enjoyable, you can make sure you want to keep going to the gym.
  9. Create a Ritual – Your workout routine should become so ingrained that it becomes a ritual. This means that the time of day, place or cue automatically starts you towards grabbing your bag and heading out. If your workout times are completely random, it will be harder to benefit from the momentum of a ritual.
  10. Stress Relief – What do you do when your stressed? Chances are it isn’t running. But exercise can be a great way to relieve stress, releasing endorphin which will improve your mood. The next time you feel stressed or tired, try doing an exercise you enjoy. When stress relief is linked to exercise, it is easy to regain the habit even after a leave of absence.
  11. Measure Fitness – Weight isn’t always the best number to track. Increase in muscle can offset decreases in fat so the scale doesn’t change even if your body is. But fitness improvements are a great way to stay motivated. Recording simple numbers such as the number of push-ups, sit-ups or speed you can run can help you see that the exercise is making you stronger and faster.
  12. Habits First, Equipment Later – Fancy equipment doesn’t create a habit for exercise. Despite this, some people still believe that buying a thousand dollar machine will make up for their inactivity. It won’t. Start building the exercise habit first, only afterwards should you worry about having a personal gym.
  13. Isolate Your Weakness – If falling off the exercise wagon is a common occurrence for you, find out why. Do you not enjoy exercising? Is it a lack of time? Is it feeling self-conscious at the gym? Is it a lack of fitness know-how? As soon as you can isolate your weakness, you can make steps to improve the situation.
  14. Start Small – Trying to run fifteen miles your first workout isn’t a good way to build a habit. Work below your capacity for the first few weeks to build the habit. Otherwise you might scare yourself off after a brutal workout.
  15. Go for Yourself, Not to Impress – Going to the gym with the only goal of looking great is like starting a business with only the goal to make money. The effort can’t justify the results. But if you go to the gym to push yourself, gain energy and have a good time, then you can keep going even when results are slow.

Read Next