sendMessage
Top  Previous  Next

sendMessage ( integer ID )

Use this function to fire an automation event to a COM-client..

Parameters
 
ID  
 
An integer specifying a user-defined identificator.  
 
 
Error flags
 
ERR_OK  
 
The flag set if successful.  
 
ERR_FAILED  
 
The flag set if failed.  
 

Example
 
This set of statements continuously grabs an image and notifies a client when the acquisition is completed.  
 
do  
grabim(1)  
sendMessage(0)  
loop  
 
 
Remark
 
This function is used for synchronizing ImageWarp scripts with an external COM application that uses ImageWarp as an Automation server. See Automation for more details.