Vous êtes sur la page 1sur 1

#ErrorStdOut

Sends any syntax error that prevents a script from launching to stdout rather than displaying a
dialog.
#ErrorStdOut
This allows fancy editors such as Textpad, SciTE, Crimson, and EditPlus to jump to the
offending line when a syntax error occurs. Since the #ErrorStdOut directive would have to be
added to every script, it is usually better to set up your editor to use the command line switch
/ErrorStdOut when launching any AutoHotkey script (see further below for setup instructions).
Although syntax errors are sent to standard output (stdout), they will not appear at the command
prompt directly. Instead, such output can be captured via piping or redirection. For example:
"C:\Program Files\AutoHotkey\AutoHotkey.exe" /ErrorStdOut "My Script.ahk"
|more
"C:\Program Files\AutoHotkey\AutoHotkey.exe" /ErrorStdOut "My Script.ahk"
>"Syntax-Error Log.txt"

Vous aimerez peut-être aussi