Beginner's Guide to Writing AutoHotkey User-Defined Functions

Helpful script writing tricks and HowTo's
User avatar
jackdunning
Posts: 118
Joined: 01 Aug 2016, 18:17
Facebook: https://www.facebook.com/ComputorEdgeEBooks/posts
Contact:

Beginner's Guide to Writing AutoHotkey User-Defined Functions

Post by jackdunning » 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.

SOTE
Posts: 1063
Joined: 15 Jun 2015, 06:21

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

Post by SOTE » 08 Mar 2020, 06:25

Great post.

locas2018
Posts: 2
Joined: 19 Aug 2019, 22:12
Google: Lucas
GitHub: Lucas
Location: USA
Contact:

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

Post by locas2018 » 23 Mar 2020, 09:33

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

Post Reply

Return to “Tutorials”