AutoHotkey Functions are a great way to “level up” your programming skill. If you’re doing any programming at all, they are a great ways to streamline your code & make it easier to maintain & read! The below videos walk-through how to use many of the most commonly-used features.
There are a few main things to consider/remember when using them:
- Unless otherwise stated, variables are local not global (this can be a plus or minus depending on your need)
- You can pass parameters whereas you cannot in a go-sub (this makes them enormously more useful)
- Using ByRef or returning an object can allow for returning more than 1 value
- Memory is freed after a function is called, in subroutines this does not happen automatically
AutoHotkey Functions
- AHK Webinar with main focus on DLL calls but also walk through using & creating your own functions
- Introduction tutorial to Functions in AHK
- Using ByRef to pass-back more than one value from your call
- Using optional parameters (set defaults)
- Use external AutoHotkey functions by utilizing Include command and Library 📚
- General tips & tricks -Demo of AutoHotkey studio’s advanced features
- Pass a variable number of parameters with a variadic function
- Passing Method or Property to COM in an AutoHotkey Function
- Lessons with Maestrith on Global, Super-Global, and Scope in AHK Functions