Most common “gotchas” when starting-out with AutoHotkey

When diving into AutoHotkey, beginners often encounter a few common pitfalls. Recognizing these can significantly smooth out the learning process. Here’s a breakdown of the top mistakes:

  1. Neglecting the AHK Documentation:
    • AutoHotkey has excellent, comprehensive documentation. Many beginners try to learn through scattered online examples, which can lead to confusion.
    • Mistake: Not thoroughly reading and understanding the official AutoHotkey documentation.
    • Solution: Prioritize familiarizing yourself with the core concepts and syntax from the official source.  Of course, you also could learn oodles from our AHK Courses
  2. Trying to Imitate a Human instead of using an API approach
    • Most people start off with AutoHotkey sending keystrokes and mouse clicks
    • Mistake: AutoHotkey has built-in ways to automate programs far superior and are much more reliable. This is especially important if you plan to use it on more than 1 comptuer!
    • Solution:Schedule a call with a Pro that can quickly let you know which is the best way to automate your specific program
  3. Trying to Automate an entire process at the start
    • Many people get carried away thinking they can easily automate 100% of a process.
    • Mistake: Automating an entire process takes a lot of time!
    • Solution: Identify the “pain points” and automate those (to start). The next time through, automate a bit more…
  4. Not Using Comments:
    • As scripts grow in complexity, it becomes difficult to remember what each section does.
    • Mistake: Writing scripts without clear and concise comments.
    • Solution: Always add comments to explain the purpose of different code sections. This will make your scripts easier to maintain and debug.  (I guarantee you’ll thank me later❗)
  5. Misuse of Hotkeys and Hotstrings:
    • Choosing hotkeys that conflict with existing system shortcuts or creating hotstrings that trigger unintentionally.
    • Mistake: Using common key combinations or creating hotstrings that are too short.
    • Solution: Select unique and less frequently used hotkey combinations. Test hotstrings thoroughly to avoid unintended triggers. Binding them to a program, by making them context sensitive, can greatly reduce this issue!  We cover Hotkeys & HotStrings in Intro to AHK
  6. Not Understanding How to do basic Debugging:
    • When a script doesn’t work as expected, beginners often struggle to identify the cause.
    • Mistake: Not utilizing MsgBox or other debugging techniques to track variable values and script execution.
    • Solution: Learn to use debugging tools and techniques to identify and fix errors.
  7. Working in a “bubble“:
    • When people try and learn AutoHotkey on their own they often waste an incredible amount of time.
    • Mistake: Not finding a “coding buddy” / expert to ask questions to.
    • Solution: If you don’t know anyone, the AHK Hero Club is an excellent way to get help from AHK Experts!
  8. Working with AHK v1 instead of AHK v2:
    • A lot of people are using AHK v1 because there are so many examples
    • Mistake: AutoHotkey v1 is depricated.  There are no updates being done and new funcionality is not being added.  For all intents and purposes AHK v1 is dead.
    • Solution: AHK v2 solves many of the issues AHK v1 had.  It was in development for over 10 years and now is the official version.  If you wan to use AI to help write V2 Code, I definitely recommend Claude or Deepseek.   We have an excellent AHK v1 to v2 course.

By being aware of these common mistakes, you can significantly improve your AutoHotkey learning experience.

AHK newsletter 2025-03-06: my 5 Bullet points of what I did last week… :)

Howdy %Name%,

I enjoyed federal employees squirm in regards to Elon’s email to them asking for 5 bullet-points as to what they had done in the past week.

It’s basically a “pulse-check” yet people are panicked!

Someone asked me if I was going to ask our employees for a list of 5 things they did.  I said it would be more like what 50 things they did!  LOL

But I did think it is a fun exercise to get us thinking so I have a challenge for you %name%.

What 5 AHK scripts did you use most last week?

If you’re wondering which ones I used most, you can check out this video.

My 5 AHK scripts I used most last week Thanks Elon!

My 5 AHK scripts I used most last week Thanks Elon!

Now on with the show…

Learn how to Master VSCode Make the switch to v2 Intro to AutoHotkey Intermediate AutoHotkey Intermediate ObjectsGUIs are Easy w/AutoHotkey Access all our Courses; Quit when you want

Simple Webcam Reminder

If you’ve ever recorded a video only to watch it later and realize your webcam covered a critical part of the screen, the Webcam Reminder script is for you!

In this video I explain hour our Webcam Reminder saves you from making this critical error!

Simple Webcam Reminder for those that Record their Desktop and share a Webcam

Simple Webcam Reminder for those that Record their Desktop and share a Webcam


Fun with ️

During this video Isaias and I had a lot of fun showing how you probably have a hotkey that you’re not using.

We also covered other cool ways to double/triple the number of hotkeys you have!

Showing mulitple ways to define hotkeys for an unused key on your Keyboard
Showing mulitple ways to define hotkeys for an unused key on your Keyboard


Add thes to All of your Scripts (We did!)

Quite a while ago I had mentioned to Isaias that we should add the ability to open a running script’s folder to our scripts.

Sometimes I need to share it, inspect something else, jump to the ini file, etc.

I knew it would be helpful but I didn’t realize just how handy it is!  So we went through all of our working scripts and added it to our scripts (as well as link to the video and other info).

In AutoHotkey v2 it is easier than you think!   Check it out in this video.

Easily Adding Open Folder and Video link to system Tray Icon in an AHK V2 Script
Easily Adding Open Folder and Video link to system Tray Icon in an AHK V2 Script


Claude 3.7 Sonnet is Amazing

Last week I spent a few hours using the new Claude model to create some very complex AutoHotkey V2 scripts.   It did a phenomenal job!   If you haven’t used it yet, I highly recommend you give it a try!

And, on that note, our updated Claude API class let’s you add a “thinking” parameter to let you tell AI how much “thought” you want it to do.  Check it out in this video.

Update to Claude AHK Class: Now has 3.7 Sonnet & “Thinking” parameter
Update to Claude AHK Class: Now has 3.7 Sonnet &

If you’re new to working with classes, check our Functions, Objects & Classes course (and don’t forget we offer a double-your-money back guarantee!)

200% Money Back Guarantee badge with a yellow and green starburst seal for AHK courses


Pin a script to Windows 11 start menu

Do you miss being able to pin a script to your start menu?   Microsoft made it ridiculously difficult (but not impossible) to do.  I show you how in this video.

How to Pin a file to Taskbar in Windows 11
How to Pin a file to Taskbar in Windows 11


Improving People’s Lives: Story #39

One of our client’s was asked to monitor a web-email account and to check it twice a week.

While we could setup Outlook to go pull from it, I asked the person in charge of the account to just setup an “auto-forward” so every-email that comes through, automatically, gets forwarded to my client.

Easy- Peezy!


What we’re reading


AI / Chat GPT-3 News / Usage

Bar chart comparing LLM input and output prices per million tokens: GPT-4.5 costs 75 input and 150 output, far above GPT-4o, Claude 3.7 Sonnet and


⚡️Productivity tips:

Ctrl + Shift + N : Create a new folder in the current directory.


A spot of Humor

Did you hear the joke about the unmade bed❓

Of course not, I haven’t made it yet….


What we utomated this week with AutoHotkey #77

This week we had a lot of scripts we worked on.   In this video I walk through 145 AHK scripts we worked on.

What we automated with AutoHotkey #77
What we automated with AutoHotkey #77

A couple weeks ago Connie, an AHK Hero member, had mentioned it would be handy to have all the links to the scripts that were mentioned / shown on-screen during the video.    That idea was great but it was going to create a lot of extra work for me.

Yesterday I realized I could create a simple script to monitory the clipboard and “log” all text that had “the-Automator” in it.   So I got on Claude and created a little script that did just that!   So, in videos description you can find links to the 43 scripts that we have downloads for.


Client’s say…

Holy shit❗ This is amazing — Dr. Kamran J.


Cartoon superhero mascot in green costume beside the bold text AHK Hero on a yellow background AHK Hero

Consider joining the AHK Hero club! Members receive 25% off courses, consultations, tutoring, done for you project work, etc.    Currently we have over 381 hours of recordings teaching AutoHotkey that is exclusive to AHK Hero members❗

You can watch 1 hour a day for a year and not repeat content! That’s a lot of AHK Learning!

During this Friday’s call we’re planning to discuss:

  • Help AHK Hero Members with their Questions & Code
  • FileCreateShortcut & Run commands both require Absolute path
  • Modularizing your Code: Tips & Tricks
  • Breaking out of Loops without exiting the script
  • Using Shellhooks verse creating a child window or Popup
  • How to prevent cached responses when doing HttpRequest?
  • Not creating multiple copies of code but ensuring the right version is used

They also have access to exclusive & pre-released content and a 3 hours a week where we help people with their AHK issues (the Saturday calls are geared towards people new to AutoHotkey.)


️ Quotable quotes

  • The thing most people like least is a mirror — Dan Kennedy
  • Systems let the Ordinary to do the Extraordinary — Joe Glines
  • Only I can change my life. No one can do it for me — Carol Burnett
  • If you want better results, forget about setting goals. Focus on your system instead — James Cleary

AHK Newsletter⏩SHARE WITH A FRIEND⏩

Do you know someone that would benefit from learning useful automation tips like the gems in today’s issue?  Take a second and forward this newsletter and bask in the glow of their undying gratitude.  Was this email forwarded to you?

Sign up for this Newsletter here.  We never share your email with anyone.  Ever!


The-Automator

Joe, Isaias, Irfan, Rizwan and staff


P.S.  DOGE is getting amazing things done by mostly “cutting” programs.  That is one of my favorite ways to be more efficient (focusing on less) but they are also working on updating archaic systems.

If you have older Windows-based software, AutoHotkey is an amazing at connecting and automating it.  We know of 20 ways to automate programs with AutoHotkey!

Why not take a look at my calendar and book a call where we can see just how easy it will be?

2025-02-06 Celebrate my birthday with me!

AutoHotkey Newsletter

Howdy,

Today’s my 57th Birthday!

To celebrate, I’m offering 50% off for 57 hours!

So, all of our courses are on sale until 7:00 p.m. CDT on Saturday.   You can use the below links which will, automatically, apply the birthday discount!

If you choose to use the discount manually, use this code during checkout: “Joes57bday”

If you’re planning to purchase a course, act now!  That 57 hours will end before you know it!

AutoHotkey V2 Courses

AutoHotkey V1 Courses

General Courses

Now on with the show…

Learn how to Master VSCode Make the switch to v2 Intro to AutoHotkey Intermediate AutoHotkey Intermediate ObjectsGUIs are Easy w/AutoHotkey Access all our Courses; Quit when you want

Ripping Audio from Video

I’m helping a local Mexican restaurant out and downloaded a bunch of YouTube videos of Mexican music for an mp3 player in their parking lot.   The mp3 player of course needs mp3 files so I user our Mp3 ripper to quickly extract the mp3 audio from them.   This tool is sooo amazing!  You can check out the process in this video.

BTW- at the end of the video I discovered a very interesting issue where Explorer was, incorrectly, reporting the length of the video.   Do you have any guess as to what was going on❓

How to quickly Convert Videos to mp3 files in bulk
How to quickly Convert Videos to mp3 files in bulk


Lessons Learned with OCR with AI

Isaias and I noticed a very interesting thing when using OCR and AI.   We document it in this video.  If you use AI to examine images you do not want to miss this!

Tip for when Using OCR with AI in your tools / Scripts / Browser
Tip for when Using OCR with AI in your tools / Scripts / Browser


Quick GIT tutorial

One of our AHK Hero members was on a consultation call and wasn’t overly familiar with using GIT so Irfan gave him a quick tutorial.  Thankfully our client said he didn’t mind if we shared it so others can learn so you can check out the video here.

Quick Tutorial on using git
Quick Tutorial on using git


Having some Fun with Hotkeys

If you didn’t check this video out yet, you really should!   Isaias and I “discovered” an un-used key and then showed multiple ways that you could use it, or others, as a trigger.

Showing mulitple ways to define hotkeys for an unused key on your Keyboard
Showing mulitple ways to define hotkeys for an unused key on your Keyboard


Improving People’s Lives: Story #37

One of our clients reached out to us saying they were getting hammered with support requests and didn’t have the time to support them in a timely manner.   So we put our “thinking caps” on and, in less than 1 day, put together an  AI chatbot on their website that will help field a lot of the Frequently Asked Questions.

BTW- I didn’t have a list of FAQs from the client so I just used AI to generate the most likely questions.  And then I went in and did my best to write answers!   We’re waiting for the client to confirm ours are right but a lot had to do with automation so we should be good to go on most!


What we’re reading


AI / Chat GPT-3 News / Usage


⚡️Productivity tips: Navigating Tabs in your Browser

  • Ctrl + Tab (or Ctrl + PgDn): Switches to the next open tab.
  • Ctrl + Shift + Tab (or Ctrl + PgUp): Switches to the previous open tab

A spot of Humor Super moments from the-Naked gun

The Naked Gun Super Moments
The Naked Gun Super Moments


What we utomated this week with AutoHotkey #74

We had quite a few AutoHotkey files worked on in the last week.  You can check them out in this video.  Remember, we could be working on your scripts for you!   Check our calendar for availability

What we automated with AutoHotkey- Episode #74
What we automated with AutoHotkey- Episode #74


Client’s say…

I love your scripts because I don’t have to focus on so many things.   I just look at the image and rely on muscle-memory. — Michael N. (Radiologist)


Cartoon superhero mascot in green costume beside the bold text AHK Hero on a yellow background AHK Hero

Consider joining the AHK Hero club! Members receive 25% off courses, consultations, tutoring, done for you project work, etc.    Currently we have over 375 hours of recordings teaching AutoHotkey that is exclusive to AHK Hero members❗

You can watch 1 hour a day for a year and not repeat content! That’s a lot of AHK Learning!

During this Friday’s call we’re planning to discuss:

  • Help AHK Hero Members with their Questions & Code
  • Writing to memory instead of file
  • Programmatically Determining the Delimiter
  • Incorrect “length” being reported by Windows Explorer
  • Deciding on customizing input from each program or just selecting text and using the clipboard
  • Copying specific files from sub-folders
  • Demonstrating resource drain during debug mode
  • Context Menu Trigger

They also have access to exclusive & pre-released content and a 3 hours a week where we help people with their AHK issues (the Saturday calls are geared towards people new to AutoHotkey.)


️ Quotable quotes

  • Decisions without actions are worthless — Dan Kennedy
  • A creative man is motivated by the desire to achieve , not by the desire to beat others — Ayn Rand
  • There are many tools out there for systematizing your marketing. There are not very many for systematizing your process — Joe Glines
  • If you think education is expensive, try ignorance — Derek Bok

AHK Newsletter⏩SHARE WITH A FRIEND⏩

Do you know someone that would benefit from learning useful automation tips like the gems in today’s issue?  Take a second and forward this newsletter and bask in the glow of their undying gratitude.  Was this email forwarded to you?

Sign up for this Newsletter here.  We never share your email with anyone.  Ever!


The-Automator

Joe, Isaias, Irfan, Rizwan and staff


P.S. I find it hard to believe I’m nearing 60!   It sucks being the same age as “old people”.  LOL

Do yourself a favor and celebrate my birthday with my by getting 50% off of one of our courses by using the above links or discount code during chekout.

All our courses come with a 200% money-back guarantee so you have NOTHING to lose!