AutoHotKeys

Written by Barry Dysert (last updated June 29, 2020)

1

AutoHotKeys is more like a system than a single-purpose utility. It allows you to do almost anything you can imagine. The reason it's so powerful is because it uses a unified scripting language. Don't be put off by this if you're not a programmer, though. There are a lot of pre-written scripts available that you can use. (For instance, I downloaded a script called "AutoCorrect", which automatically corrects misspelled words anywhere I type them.)

In addition, writing your own scripts to perform small tasks is quite simple. For instance, a script I have that automatically toggles between minimizing and normalizing a SQL Server window only takes one line. I mostly use AutoHotKeys to define my Windows shortcut keys, and these can be defined in just a few lines. Using this utility, for example, I created a shortcut key (Ctrl+Alt+E) to launch Microsoft Excel by using these three lines:

^!e::
Run "C:\Program Files\Microsoft Office\Office14\EXCEL.EXE"
Return

Another shortcut I created allows me to type just a few characters, and AutoHotKeys immediately expands what I typed into a long SQL statement. Another shortcut holds my e-mail address.

AutoHotKey scripts are normal ASCII files that can be edited with something like Notepad. They all have an ".ahk" extension. The default script lives in your Documents folder, is named "AutoHotkey.ahk", and by default is run when you log in—so all your hot keys are available to you immediately. You can have as many .ahk files as you like, and you can run as many as you like.

I have just scratched the surface of what all can be done by using AutoHotKeys. I recommend that you download a copy and see if it would be useful to you.

AutoHotKeys is a free download and can be retrieved from this site:

https://www.autohotkey.com/

 This tip (12987) applies to Windows 7, 8, and 10.

Author Bio

Barry Dysert

Barry has been a computer professional for over 35 years, working in different positions such as technical team leader, project manager, and software developer. He is currently a software engineer with an emphasis on developing custom applications under Microsoft Windows. When not working with Windows or writing Tips, Barry is an amateur writer. His first non-fiction book is titled "A Chronological Commentary of Revelation." ...

MORE FROM BARRY

Using Your Own Pictures as Wallpaper

You can change the image that is displayed for your desktop background to your own picture. Changing the wallpaper to one ...

Discover More

Deleting a Saved Search

Windows Explorer has a good search utility built into it. As you use it, you may wish to delete a previously saved search ...

Discover More

Moving the Music Folder

The Music folder is one of several system libraries created in Windows by default. This library is specifically optimized ...

Discover More
More WindowsTips

M8 Free Clipboard

If you've ever found it tedious to do copy/paste with one piece of information at a time, you'll really like M8 Free ...

Discover More

Quickly Format a USB Drive with File Explorer

USB flash drives are a very helpful addition to store and transfer data. Discover how to format a USB drive using File ...

Discover More

Getting Cortana to Listen to You

Talking to your computer can save you time and help get you the information you need faster. With the proper setup you ...

Discover More
Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 6 + 3?

2020-06-29 06:38:11

Jim

I was unaware of this. Thanks! I've been using .bat files as shortcuts.


Newest Tips