Hello,
One thing that confuses a lot of people new to AutoHotkey is if they should have one AutoHotkey script or many. The answer is a bit complicated. In reality you probably want many, however understanding what you should put in your “main” AutoHotkey.ahk script verse individual scripts are a bit complicated.
The decision to combine or separate scripts might often boil down to personal preference. It’s also influenced by how you plan to use these scripts.
For instance, if you anticipate that specific users might only need certain functionalities, it’s beneficial to keep those functions in separate scripts. This approach makes it easier to provide users with exactly what they need without overwhelming them with unnecessary code.
Watch this video (which is extracted from Intro to AHK v2) to dive deeper into the decision-making process. Don’t forget the Intro to AHK course is over 4 hours long and comes with a double your money back guarantee! You can get 15%off by clicking this link or save 25% by joining the AHK Hero Group.
Additional Resources
- AHK Podcast #005: One or many scripts
- AHK Podcast #007: Running your scripts on many computers
Joe, Isaias, Irfan & Team
This campaign was designed to allow you to jump around. At any time you can jump to any one of the emails by clicking below
P.S. A while back, Isaias and I had a discussion on batching which is related to grouping actions together. You can take a look at that discussion in this video.

