![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <InteractiveProcess.h>
Inheritance diagram for FInteractiveProcess:Protected Member Functions | |
| CORE_API void | ProcessOutput (const FString &Output) |
| CORE_API void | SendMessageToProcessIf () |
Implements an external process that can be interacted.
| FInteractiveProcess::FInteractiveProcess | ( | const FString & | InURL, |
| const FString & | InParams, | ||
| bool | InHidden, | ||
| bool | LongTime = false |
||
| ) |
Creates a new interactive process.
| InURL | The URL of the executable to launch. |
| InParams | The command line parameters. |
| InHidden | Whether the window of the process should be hidden. |
| FInteractiveProcess::FInteractiveProcess | ( | const FString & | InURL, |
| const FString & | InParams, | ||
| const FString & | InWorkingDir, | ||
| bool | InHidden, | ||
| bool | LongTime = false |
||
| ) |
Creates a new interactive process.
| InURL | The URL of the executable to launch. |
| InParams | The command line parameters. |
| InWorkingDir | The URL of the working dir where the executable should launch. |
| InHidden | Whether the window of the process should be hidden. |
< 10 milliseconds sleep
| FInteractiveProcess::~FInteractiveProcess | ( | ) |
Destructor.
Cancels the process.
| InKillTree | Whether to kill the entire process tree when canceling this process. |
| FTimespan FInteractiveProcess::GetDuration | ( | ) | const |
Gets the duration of time that the task has been running.
|
inline |
Gets the Process Handle. The instance can be invalid if the process was not created.
|
inline |
Returns the return code from the exited process
|
inline |
Checks whether the process is still running.
| bool FInteractiveProcess::Launch | ( | ) |
Launches the process
|
inline |
Returns a delegate that is executed when the process has been canceled.
|
inline |
Returns a delegate that is executed when the interactive process completed. Delegate won't be executed if process terminated without user wanting
|
inline |
Returns a delegate that is executed when a interactive process produces output.
|
protected |
Processes the given output string.
| Output | The output string to process. |
|
overridevirtual |
|
protected |
Takes the first message to be sent from MessagesToProcess, if there is one, and sends it to process
| void FInteractiveProcess::SendWhenReady | ( | const FString & | Message | ) |
Sends the string message when process is ready
| Message | to be sent |
Sends the data message when process is ready
| Data | to be sent |