

"Integer" refers to unsigned 16-bit integers (0.0xFFFF). Commas always need to be escaped, regardless of the parameter position. In the parameters of these directives, the following escape sequences are supported: ``, `, `n, `r and `t. Directives that control executable metadata Introduction The reverse is also true: it will not be necessary to check for A_IsCompiled because the code is inside a comment block in the uncompiled script. This has advantage over A_IsCompiled because the code is completely removed from the compiled script during preprocessing, thus making the compiled script smaller. MsgBox "This message appears in both the compiled and uncompiled script" marking a code section to only be executed in the compiled script: "This message appears only in the compiled script" It is possible to remove code sections from the compiled script by wrapping them in directives: MsgBox "This message appears in both the compiled and uncompiled "This message does NOT appear in the compiled "This message appears in both the compiled and uncompiled script" Directives that control the script behaviour All compiler directives are introduced by the string preceded by the comment flag (usually ). The script compiler looks for special comments in the source script and recognises these as Compiler Directives. Ability to remove code sections from the compiled script and vice versa.Ability to tweak several miscellaneous aspects of compilation.Ability to add resources to the compiled script.

Ability to change the version information (such as the name, description, version.).Script compiler directives allow the user to specify details of how a script is to be compiled via Ahk2Exe. UseResourceLang: Changes the resource language.ResourceID: Assigns a non-standard resource ID to the main script.PostExec: Runs a program after compilation.ExeName: Specifies the location and name for the.Cont: Specifies a directive continuation line.Bin / Base: Specifies the base version of AutoHotkey to use.Directives that control executable metadata:.Directives that control the script behaviour:.Script Compiler Directives | AutoHotkey v2 Script Compiler Directives Table of Contents
