setImFocus  
Top  Previous  Next

setImFocus ( integer Image)

Use this function to set the focus to a specific image frame in the workspace.

Parameters
 
Image  
 
An integer between 1 and 99 specifying the number of the frame.  

Error flags

ERR_OK  
 
The flag set if successful.  
 
ERR_FAILED  
 
The flag set if failed.  

Example

This set of statements captures 3 images and keeps switching the focus between them:  

grabIm(1)  
grabIm(2)  
grabIm(3)  
do  
setImFocus(1)  
wait (1000)  
setImFocus(2)  
wait (1000)  
setImFocus(3)  
wait (1000)  
loop