The SourceType property stores the system type of the MsgObject or Event object.

Property call syntax

 SourceType : String

Usage examples

Problem. When Relay 1 closes (for example, the button connected to the relay is pressed), print the frames from Cameras 1 and 2.

 if (Event.SourceType == "GRELE" && Event.SourceId == "1" && Event.Action == "ON")
{
 //activating the Camera 1 window
 DoReactStr("MONITOR","1","ACTIVATE_CAM", "cam<1>"); 
 //printing the frame from Camera 1
 DoReactStr("MONITOR","1","KEY_PRESSED","key<PRINT>");
 //activating the Camera 2 window
 DoReactStr("MONITOR","1","ACTIVATE_CAM", "cam<2>");
 //printing the frame from Camera 2
 DoReactStr("MONITOR","1","KEY_PRESSED","key<PRINT>");
}