The power of built-in variables

What are built-in variables?

As the name says, built-in variables are built-in. Their content is not filled by the user but by AutoHotkey itself. There are several differences with their handling:

Note: In AutoHotkey v2 and AutoHotkey_H v2, the ComSpec and ProgramFiles variables are removed (and A_ComSpec is introduced).

Setting the content

As noted above, you usually can’t change the content of a built-in variable. There are 2 exceptions of that rule:

Which variables are available?

There are way too much built-in variables to list them all here. The areas they cover reach from A_Space over script properties, date & time, script settings, user idle time, GUI variables, OS info up to things like A_LastHotkey.

A list of them can be found in the respective manual. Online links:

booleans

Additionally to those listed in the links above, AutoHotkey has the built-in variables (or constants) true and false. IronAHK also introduces null.