Up | CameraError | ImageComplete | LoadTools | SaveTools | ToolApply | ToolVariantChange | DataInputApply | Query Events | UpdateResultPanel | UpdateIndicatorPanel | ContextChange | Mouse Events | Timer | LogMsg

 

  

 
LogMsg
The LogMsg event is called when a log message is created. The event is called regardless of the filter level in the System Log and can be used to detect special occurrences due to the message text content.

Example:

def Handle_System_LogMsg(Level,Sender,Msg):
#
# Level = VT_I4
# Sender = VT_BSTR
# Msg = VT_BSTR
#
# Level: -1=Error, 0=Warning, 1..3=Info 1..3
# Return 1 if handled by script
# Return 0 if default handling
#
  if Sender=='Central':
    return 1     #ignore all central messages (don't append to system log)
  return 0

 

Scorpion Vision Version XII : Build 646 - Date: 20170225
Scorpion Vision Software® is a registered trademark of Tordivel AS.
Copyright © 2000 - 2017 Tordivel AS.