paperlined.org
apps > autohotkey > syntax
document updated 16 years ago, on Feb 15, 2008
Treatise on a more consistent AutoHotkey language syntax

Treatise on a more consistent AutoHotkey language syntax

ToDo

The AutoHotkey's syntax is unusual or confusing at some points. This document attempts to pinpoint the issues, determine the root causes, and propose changes that attempt to make the language more consistent and thus easier to learn and use.

There are two common problems with AutoHotkey's current syntax:

  1. The language has a long history, and has expanded a lot since it began. While retaining backwards compatibility is a good thing, not enough effort has been made to deprecate older / more primitive constructs, and move the language as a whole towards a more constitent syntax.
  2. (more specifically) The same operation (eg. variable interpolation, or string literals) sometimes has two completely different syntaxes, and the programmer must determine which is the correct one to use in each context (when writing), and determine which of two possible meanings is correct (when reading).
Specific problems: