< seconds >)
command sets the timeout in seconds for any subsequent Run commands.
> Number of seconds allotted for the Run command to execute.
- If the external
program takes up more time than allotted, then the program is terminated and
an implicit GOTO command is executed to the label ONRUNTIMEOUT.
If no such label exists, the IVR reports that the End of Script has reached and turns the LED red.
// external application timeout is set as 5 seconds
// calls windows notepad application
// please ensure that the AppWindow option is enabled in xivr configuration (xivrcfg.exe)
// If AppWindow option is disabled, you will not see the window of the application.
$cmdline = format("%s\notepad.exe",fs.GetEnv("SystemRoot"))
// start notepad and wait for 5 seconds.
// You will see notepad terminating within 5 seconds
run $cmdline $varfile
MsgBox("Application closed by user")
MsgBox("Time expired. Application terminated.")