Write to debug #216
-
When I run a script using vscode and try this code FileAppend, Test`n,* It prints to the console I mean for example, when you run the script by double-clicking on it, instead of opening it on vscode |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
In conclusion, it is not possible. I tried to find a way to get the contents of the standard output of an already running process a long time ago, but came to the conclusion that it is not possible. The reason this extension can output messages to standard output is because it gets a handle on standard output by running an AutoHotkey process within the extension. As a suggestion, if you want to get messages from an already running AutoHotkey script, you can use OutputDebug. Also, this extension supports OutputDebug, which is superior to FileAppend if you want to output messages. |
Beta Was this translation helpful? Give feedback.
In conclusion, it is not possible.
I tried to find a way to get the contents of the standard output of an already running process a long time ago, but came to the conclusion that it is not possible.
The reason this extension can output messages to standard output is because it gets a handle on standard output by running an AutoHotkey process within the extension.
As a suggestion, if you want to get messages from an already running AutoHotkey script, you can use OutputDebug.
The messages can be viewed by using Microsoft's DebugView software.
Also, this extension supports OutputDebug, which is superior to FileAppend if you want to output messages.