Beginner's Guide to Writing AutoHotkey User-Defined Functions

Helpful script writing tricks and HowTo's
User avatar
Posts: 122
Joined: 01 Aug 2016, 18:17

Beginner's Guide to Writing AutoHotkey User-Defined Functions

07 Mar 2020, 16:07

User-defined functions are one of the most important tools in AutoHotkey, yet beginners with no programming experience can have difficulty with the concepts. Functions save time by storing repetitive code in modules for use in numerous situations.

A number of years ago, I wrote a blog in response to a reader's question which took his code and turned it into a function. In that blog, I addressed many of the nuances of functions that a beginner may miss.

I just reviewed and updated that blog "Writing AutoHotkey Functions to Make Life Easier" and thought I would offer it as a tutorial in this forum.

The blog addresses:
  • User-Defined Function Format
  • Creating an AutoHotkey Function to Replace Repetitious Code
  • Assigning Names to the Parameters
  • Calling the Function
  • Alternative Method for Calling a Function
  • Plus, a couple of extra AutoHotkey tips for beginners
March 30, 2020: To add more AutoHotkey function information for beginners to that listed above, I've written a new blog "Guidelines for AutoHotkey Function Libraries."
Last edited by jackdunning on 30 Mar 2020, 14:33, edited 1 time in total.
Posts: 2
Joined: 19 Aug 2019, 22:12
Google: Lucas
GitHub: Lucas
Location: USA

Re: Beginner's Guide to Writing AutoHotkey User-Defined Functions

23 Mar 2020, 09:33

it's great
..Cease to struggle and you cease to live. :D

Return to “Tutorials”

Who is online

Users browsing this forum: Google [Bot] and 2 guests