Graphic Script Time outs
- Last UpdatedJul 13, 2023
- 1 minute read
To avoid infinite loops in a graphic script, a time-out limit can be set in which FOR loops must complete execution. If a script loop does not complete execution within the time-out limit, WindowViewer automatically terminates the loop and writes a message to the Logger.
The time-out limit is checked only at the NEXT statement of the loop. Therefore, the first iteration of the loop is always executed, even if it exceeds the time-out limit.
To change the time out for a graphic script
-
In WindowMaker, on the Special menu, point to Configure and click WindowViewer. The WindowViewer Properties dialog box appears.
-
Click the Managed Application tab.
-
In the Script timeout (msec) box, type a time-out value in milliseconds. Valid values are from 1 to 360,000.
-
Click OK.