Use ByRef to Return Multiple Values from AutoHotkey Functions via

Return Multiple Values from AutoHotkey FunctionsAutoHotkey Merchandise-White Stress ballIn my initial video I talked through how & why to use AutoHotkey functions as well as how to return one value from a function.  This video will demonstrate how to Return Multiple Values from AutoHotkey Functions via the byRef command.  You can also return multiple values by returning an Object or an Array which can hold any-number of values..  The byRef command can seem a bit tricky at first, but it really is an easy way to return many values from a function. My next video will cover using the Include command

Return multiple values from AutoHotkey functions with byRef

Four colleagues seated at a meeting table, with a green AutoHotkey water bottle in the center

Intro tutorial on using AutoHotkey functions to streamline code

AutoHotkey functionGroup of coworkers seated around a table in a bright office, talking together with a green reusable water bottle in front of themAutoHotkey functions are a true gem that help streamline your code, make it more readable, easier to maintain, and avoid conflicts with other variables (because their scope is local by default.  They take a little practice getting used to however they can save a ton of time and allow for re-using a ton of code.   Don’t get hung-up on writing them at the beginning of your script.  Often I go back after writing my script and realize I should have written a function in place of a subroutine.

My first video on AutoHotkey functions explains why & how you can use them.

Bearded man in denim shirt and woman in white top reviewing papers and a laptop together at a desk with coffee