system.vision.exit
Backwards Compatibility
This function replaces system.util.exit. Any scripts containing Vision Client scoped functions that were replaced with system.vision syntax will still work to maintain backwards compatibility. Only the system.vision variations will appear in the Script Editor's autocomplete popup.
This function is used in Python Scripting.
Description​
Exits the running Client, as long as the shutdown intercept script doesn't cancel the shutdown event. Set force to true to not give the shutdown intercept script a chance to cancel the exit. Note that this will quit the Client completely. You can use system.vision.logout() to return to the login screen.
Client Permission Restrictions​
This scripting function has no Client Permission restrictions.
Syntax​
system.vision.exit([force])
Parameters​
Type | Parameter | Description |
---|---|---|
Boolean | force | If true (1), the shutdown-intercept script will be skipped. Default is false (0). [optional] |
Returns​
Nothing
Scope​
Vision Client
Code Examples​
Example #1
# This code would exit the Client after confirming with the user.
if system.vision.showConfirm("Are you sure you want to exit?"):
system.vision.exit()