Up | QueryStart | QueryStop | QueryClose | QueryUserEvent

 

  

 
QueryUserEvent
The QueryUserEvent is called when the user interacts with the application.

Possible events:

  • Start
  • Stop
  • Setup
  • Save
  • Snapshot
  • Inspect
  • Help
  • Close

The event can be used to stop or allow the user access

Example 1: Deny close due to user

def Handle_System_QueryUserEvent(Event,Username):
  #
  # Event = VT_BSTR
  # Username = VT_BSTR
  #
  # Return 1 to deny user event
  # Return 0 for default handling
  #
  if Event=='Close' and Username<>'admin':return 0
  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.