• Intro to AutoHotkey HotStrings with AutoHotkey Intermediate AutoHotkey GUIs are Easy with AutoHotkey Intro to DOS & AutoHotkey

How to use optional parameters in AutoHotkey Functions

optional parameters in AutoHotkey FunctionsSquishy Ball 2Functions in AutoHotkey rock!  Some functions though have items that either 99% of the time are the same value or are things that you rarely use.  In this case using optional parameters in AutoHotkey Functions is a great way to simplify your code!  Just remember that the optional parameters have to be listed after all of the required parameters.

In the below video I demonstrate how to set defaults and pass optional params to an AutoHotkey function.

Optional parameters in AutoHotkey functions

AutoHotkey Bottle 1

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  • Intro to AutoHotkey HotStrings with AutoHotkey Intermediate AutoHotkey GUIs are Easy with AutoHotkey Intro to DOS & AutoHotkey