ph_runsync PowerHome formula function
Description
Launches an external executable and waits for it to complete.
Syntax
ph_runsync ( path, wait, waittype )
Argument |
Description |
path
|
String. The full path and filename of the executable to run.
|
wait
|
Long. The number of milliseconds to wait for the executable to complete. Use -1 to wait indefinately.
|
waittype
|
Integer. The type of waiting for
PowerHome
to perform. If 0, then PowerHome will not be locked and other functions may be performed (however, the execution queue will not process any more actions until this function completes). Any other value and PowerHome will be frozen and appear to be hung until the application completes or times out.
|
Return value
Integer. 0 is returned if the function returns because the executable was closed. 1 is returned if the function returns because the timeout (wait) parameter was exceeded.