Output to STDOUT/STDERR

Share your ideas as to how the documentation can be improved.
JBensimon
Posts: 33
Joined: 19 Nov 2017, 11:19

Output to STDOUT/STDERR

Post by JBensimon » 23 Dec 2020, 08:15

Now that those great compiler directives have been incorporated into the official AutoHotkey release, maybe the following caveat found in the FileAppend documentation

"However, text sent to stdout will not appear at the command prompt it was launched from"

should be amended with something like "..., unless the script is compiled with the ;@Ahk2Exe-ConsoleApp directive." ? There may be other such areas in the documentation.

JB
User avatar
Ragnar
Posts: 367
Joined: 30 Sep 2013, 15:25

Re: Output to STDOUT/STDERR

Post by Ragnar » 07 Feb 2021, 10:28

Thanks for reporting. The change is included in PR #464. If you find any other places in the docs regarding this, let us know.
JBensimon
Posts: 33
Joined: 19 Nov 2017, 11:19

Re: Output to STDOUT/STDERR

Post by JBensimon » 15 Feb 2021, 09:52

Since you ask, the same clarification should be added to the #ErrorStdOut doc page which states:

"Because AutoHotkey is not a console program, errors will not appear at the command prompt directly."

There's a also the doc page for Loop (read file contents) which states

"Standard Output (stdout): [...] Although such output can be redirected to a file, piped to another EXE, or captured by fancy text editors, it will not appear at the command prompt it was launched from."

In both cases, the same " ..., unless" addition to the sentence should suffice.
User avatar
Ragnar
Posts: 367
Joined: 30 Sep 2013, 15:25

Re: Output to STDOUT/STDERR

Post by Ragnar » 18 Feb 2021, 10:31

Thanks for reporting. The changes are included in PR #466.
Post Reply

Return to “Suggestions on documentation improvements”