pause
Top  Previous  Next

pause ( [ integer ID ] )

Use this function to pause the execution of the main thread of the script. Equivalent to selecting the Pause command from the Script menu. To continue the script, use the Execute command.

The function is typically used for synchronizing ImageWarp with an external application during the DDE and COM sessions. See Dynamic Data Exchange and Automation for more details.

Parameters
 
ID  
 
An optional positive integer specifying the ID of the thread to be paused. If this parameter is omitted, the main thread will be paused. If ID=CUR_THREAD, the script containing the pause function will be stopped. See thread for more details.  
 
Example
 
This set of statements continuously grabs an image and displays its histogram making a pause at each cycle. Use the Execute command to continue.  
 
grabIm(1)  
showHistogram(TRUE,TRUE)  
Do  
grabIm(1)  
pause()  
Loop