www.autohotkey.com Open in urlscan Pro
172.67.159.204  Public Scan

Submitted URL: https://autohotkey.com/docs/commands/_EscapeChar.htm
Effective URL: https://www.autohotkey.com/docs/v1/lib/_EscapeChar.htm
Submission: On April 06 via api from BY — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

 * 
 * 
 * 

 * Ξ

 * Δ
 * * 
   * 
   * 
   * 
   * 
   * 
 * * 
   * 
 * 

 * ◄
 * ►
 * 
 * 
 * ¬

 * 
 * Ѕ

 * 
 * * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
 * 
 * 
 * 
 * 
 * 
 * 
 * * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
 * * 
   * 
   * 
   * 
   * 
   * 
   * 
   * * 
     * 
     * 
     * 
     * 
     * 
     * 
     * 
     * 
     * 
     * 
     * 
     * 
     * 
     * 
     * 
 * * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
 * * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * * 
     * 
     * 
     * 
     * 
     * 
     * 
     * 
     * 
     * 
   * * 
     * 
     * 
     * 
     * 
     * 
     * 
     * 
     * 
     * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
 * * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
 * * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
 * * * 
     * 
     * 
     * 
     * 
     * 
     * 
     * 
     * 
     * 
     * 
     * 
     * 
     * 
     * 
     * 
     * 
     * 
     * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
 * * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
 * * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
 * * 
   * 
   * 
   * 
 * * 
   * 
   * 
   * 
   * 
 * * 
   * 
   * 
 * * 
   * 
   * 
   * 
   * 
   * 
 * * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
 * * * 
     * 
     * 
     * 
     * 
     * 
     * 
     * 
     * 
     * 
     * 
     * 
     * 
     * 
   * * 
     * 
     * 
     * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
 * * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 
   * 

FilterDirectivesBuilt-in VariablesBuilt-in FunctionsControl Flow
StatementsOperatorsDeclarationsCommandsSub-commandsBuilt-in
Methods/PropertiesAhk2Exe Compiler

Highlight keywords



 * 
 * 
 * 
 * 




#ESCAPECHAR

Changes the script's escape character (e.g. accent vs. backslash).

Deprecated: This directive is not recommended for use in new scripts. Use the
default escape character (accent/backtick) instead.

#EscapeChar NewChar


PARAMETERS

NewChar

Specify a single character.


REMARKS

The escape character is used to indicate that the character immediately
following it should be interpreted differently than it normally would.

If this directive is unspecified in the script, it will behave as though set to
accent/backtick (`), which is at the upper left corner of most English
keyboards. Using this character rather than backslash avoids the need for double
backslashes in file paths.

See Escape Sequences for a complete list of sequences and its results (e.g. `n
would produce a linefeed character).

Like other directives, #EscapeChar cannot be executed conditionally.


RELATED

The following rarely used directives also exist; their usage is shown in these
examples:

#DerefChar #  ; Change it from its normal default, which is %.
#Delimiter /  ; Change it from its normal default, which is comma.

Deprecated: These directives are not recommended for use in new scripts. Use the
default dereference character (percent) and the default delimiter character
(comma) instead.


EXAMPLES

Changes the default escape character (`) to backslash.

#EscapeChar \