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
|