process.window_hidden
process.window_hidden
Function
Hide the console child process window under Windows. This method is suitable for the bt_app desktop application or background service to start the console program while continuing to read the progress through the stdout/stderr pipe.
Syntax
process(program).window_hidden()
Parameters
No parameters.
Return value
| Type | Description |
|---|---|
| Process | Returns the new process builder. |
Example
cmd = process('docx_to_img.exe') .arg('@/docx') .window_hidden() .child() result = type(cmd) // Output: Process print result
Notes
- The console child process window is hidden by default in non-inherit_stdio() scenarios under Windows; explicitly calling window_hidden() can make the business code clearer.
- window_hidden() will cancel the interactive stdio inheritance semantics of inherit_stdio() and child() will continue to use the default stdout/stderr pipe.
- This method does not change the system window behavior under Linux/macOS and only retains chain configuration compatibility.