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.

2025-02-27 Einstein was no Einstein

AutoHotkey Newsletter

Howdy %Name%,

Did you that Einstein was a “late talker” starting at around 4-5 years old?   He was also very un-organized and his teachers didn’t think him “exceptional”.

I think a lot of people give up on things merely because they started on a topic that was “beyond their grasp”.

Or they watch other people solve complex problems but fail to realize the person solving it has been working in their field for YEARS.

It’s one of the reasons I hate the use of affirmative action in colleges.

It often puts people amongst peers that had better resources & education for 15 years and now they are expected to be able to handle the same workload.

It’s the main reason why so many end-up dropping out / not getting their degree.

It’s why we customize our answers during the AHK hero calls to the person’s knowledge level .

Its also why we reserve Saturday’s hero calls for “entry level” questions.  People need to feel comfortable asking their questions amongst other people that are working at the same level.

Imagine if you came to us never having worked in AutoHotkey and purchased our Functions, Objects and Classes course.  You’d hate both it and AutoHotkey!

But if you started off with our Intro to AutoHotkey course, you would have loved both AutoHotkey andour course!   (Thankfully both come with a 200% money-back guarantee so, in reality, there is no risk.)

But next time you witness someone solve something beyond your grasp ask yourself

“Does that person have knowledge I don’t?”

And, if you want to be able to keep-up with them; go out and get that knowledge !

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

Does Microsoft have Saboteurs?

The more I changes I see in Windows, the more I think there is someone at Microsoft has employees that are purposefully sabotaging them!

For instance, why would someone create the Do not Disturb capability but then make it so difficult to turn in on/off?

That’s why we created Toggle Do Not Disturb.  This makes it super-easy to enable/disable Do not Disturb as you can see in this video.

How to easily Toggle Do Not Disturb in Windows 11
How to easily Toggle Do Not Disturb in Windows 11

If you like that tool you might also enjoy our Toggle Bluetooth which was started by Connie, an AHK Hero member and completed during an AHK Hero call.


Improving People’s Lives: Story #38

Anthropic just released Claude 3.7 which allows for adjusting the amount of “reasoning” via the API.

Danny, one of our Radiologist, relies heavily on Claude so we updated our Claude API Class to use the new model (and the new “thinking” parameter.)

This will let Danny decide just how much thought he want’s AI to give a topic!

You can check out the new property in this video.

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


My Good Morning Alexa Routine

I mainly about Desktop Automation however I do a lot of other types of Automation as well like Marketing Automation, Statistical work (Here’s one of my other YouTube channels on SPSS Macros) and Home Automation.

For instance I have Amazon Echos in every room and have been using them for ~13 years.

In this video I show my “Good morning” routine.   Routines are great way to combine a bunch of actions together.

Home Automation with Alexa My Good Morning Routine
Home Automation with Alexa My Good Morning Routine


What we’re reading


AI / Chat GPT-3 News / Usage


⚡️Productivity tips: This bites!

Use Ctrl + Shift + L to apply the Bullets command in Microsoft Word


A spot of Humor   Some Dad Humor

Just read an interesting fact – Bruce Lee had a vegan brother;

Broco Lee


What we utomated this week with AutoHotkey #76

This week we dive into a lot of interesting topics in what we Automated with AutoHotkey.  Be sure to catch the video here.

What we Automated with AutoHotkey #76
What we Automated with AutoHotkey #76


Client’s say…

“My mind is blown” — Kelly Coughlin


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 378 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
  • Claude 3.7 and new “thinking” option in API
  • Modularizing your Code: Tips & Tricks
  • How to prevent cached responses when doing HttpRequest?
  • Not creating multiple copies of code but ensuring the right version is used
  • Auto-listing Variables / Words as you type
  • Inexpensively Creating AI Chatbots

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

  • Determine that the thing can and shall be done, and then we shall find the way — Abraham Lincoln
  • The amateur does not know what to do. The master knows what not to do — James Cleary
  • Create exceptional Opportunities for Exceptional People — Dan Kennedy

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. Don’t be intimidated by topics or people.   YOU can learn anything, if you apply yourself and start at the correct level!

If you’re wanting to move forward in your AutoHotkey knowledge, but don’t know where to start, we can have a quick assessment call and I can point you in the right direction.

Just reply to this email and we’ll figure out a time to have a quick chat.

Use Google Translate API to easily & accurately translate texts

Google Translate APII’m helping a local restaurant out with their marketing and technology.  Unfortunately the owner’s English is very limited so I wrote the below code to make it easy to use the Google Translate API to convert English to Spanish and Spanish to English (but it would be super easy to adapt it to your language of preference).

How to use Google Translate API to translate texts