Quote from Deleted user on March 29, 2019, 10:32 am
AlConsole Plugin
Syntax:
alRun "command & parameters" "Synchronous (True/False)" "[output_variable]" "sub_output" "sub_end" "True"
.sub_output is called after the command output is completed. [Only in async mode]
.sub_end is called after end of all tasks. [Only in async mode]
Example:
alRun "dir C:\*" "True" "[Log]" "sub_output" "sub_end" "True"
.Note: sub_output keeps executing and text keeps buffering[piling up] in Log variable [Only in Async mode]
Notes:
What is Async mode?
Your app can execute a heavy command in background while it does something else in foreground. For example - You can create a media player app which can backup a folder with 20GB music files in background while playing some music in foreground at the same time.
When do I need Async mode?
If your command takes longer than few seconds, consider using Async mode.
AlConsole Plugin
Syntax:
alRun "command & parameters" "Synchronous (True/False)" "[output_variable]" "sub_output" "sub_end" "True"
.sub_output is called after the command output is completed. [Only in async mode]
.sub_end is called after end of all tasks. [Only in async mode]
Example:
alRun "dir C:\*" "True" "[Log]" "sub_output" "sub_end" "True"
.Note: sub_output keeps executing and text keeps buffering[piling up] in Log variable [Only in Async mode]
Notes:
What is Async mode?
Your app can execute a heavy command in background while it does something else in foreground. For example - You can create a media player app which can backup a folder with 20GB music files in background while playing some music in foreground at the same time.
When do I need Async mode?
If your command takes longer than few seconds, consider using Async mode.