system.vision
Vision Functions
The following functions will allow you to update your Vision Client project using scripting, control windows, and create popup interfaces.
📄️ beep
Tells the computer where the script is running to make a "beep" sound.
📄️ centerWindow
Given a window path, or a reference to a window itself, it will center the window.
📄️ closeDesktop
Allows you to close any of the open desktops associated with the current client.
📄️ closeParentWindow
Closes the parent window given a component event object.
📄️ closeWindow
Given a window path, or a reference to a window itself, it will close the window.
📄️ color
Creates a new color object, either by parsing a string or by having the RGB[A] channels specified explicitly.
📄️ createImage
Takes a snapshot of a component and creates a Java BufferedImage out of it.
📄️ createPopupMenu
Creates a new popup menu, which can then be shown over a component on a mouse event.
📄️ createPrintJob
Provides a general printing facility for printing the contents of a window or component to a printer.
📄️ desktop
Allows for invoking system.vision functions on a specific desktop.
📄️ exit
Exits the running Client, as long as the shutdown intercept script doesn't cancel the shutdown event.
📄️ exportCSV
Exports the contents of a dataset as a CSV file, prompting the user to save the file to disk.
📄️ exportExcel
Exports the contents of a dataset as an Excel spreadsheet, prompting the user to save the file to disk.
📄️ exportHTML
Exports the contents of a dataset to an HTML page. Prompts the user to save the file to disk.
📄️ findWindow
Finds and returns a list of windows with the given path.
📄️ getAvailableLocales
Returns a collection of the locales defined on the system, as strings.
📄️ getAvailableTerms
Returns a collection of available terms defined in the translation system.
📄️ getClientId
Returns a hex-string that represents a number unique to the running Client's session.
📄️ getConnectionMode
Retrieves this Client session's current connection mode.
📄️ getConnectTimeout
Returns the connect timeout in milliseconds for all Client-to-Gateway communication.
📄️ getCurrentDesktop
Returns the handle of the desktop this function was called from.
📄️ getCurrentWindow
Returns the path of the current "main screen" window, which is defined as the maximized window.
📄️ getDesktopHandles
Gets a list of all secondary handles of the open desktops associated with the current client.
📄️ getEdition
Returns the edition of the Vision Client.
📄️ getExternalIpAddress
Returns the Client's IP address, as it is detected by the Gateway.
📄️ getGatewayAddress
Returns the address of the Gateway that the Client is currently communicating with.
📄️ getInactivitySeconds
Returns the number of seconds since any keyboard or mouse activity.
📄️ getKeyboardLayouts
Returns a list of keyboard layouts available on this system.
📄️ getLocale
Returns the current string representing the user's Locale, such as 'en' for English.
📄️ getOpenedWindowNames
Finds all of the currently open windows and returns a tuple of their paths.
📄️ getOpenedWindows
Finds all of the currently open windows and returns a tuple of references to them.
📄️ getParentWindow
Finds the parent (enclosing) window for the component that fired an event and returns a reference to it.
📄️ getReadTimeout
Returns the read timeout in milliseconds for all client-to-gateway communication.
📄️ getRoles
Finds the roles that the currently logged in user has, returns them as a Python tuple of strings.
📄️ getScreenIndex
Returns an integer value representing the current screen index based on the screen from which this function was called.
📄️ getScreens
Get a list of all the monitors on the computer this client is open on.
📄️ getSibling
Given a component event object, looks up a sibling component.
📄️ getSystemFlags
Returns an integer that represents a bit field containing information about the currently running system.
📄️ getUsername
Returns the currently logged-in username.
📄️ getWindow
Finds a reference to an open window with the given name.
📄️ getWindowNames
Returns a list of the paths of all windows in the current project, sorted alphabetically.
📄️ goBack
When using the Typical Navigation Strategy, this function will navigate back to the previous main screen window.
📄️ goForward
Navigates "forward" to the last main-screen window the user was on when they executed a system.vision.goBack().
📄️ goHome
When using the Typical Navigation Strategy, this function will navigate to the "home" window.
📄️ invokeLater
Invokes (calls) the given Python function object after all of the currently processing and pending events are done being processed, or after a specified delay.
📄️ isOverlaysEnabled
Returns whether or not the current client's quality overlay system is currently enabled.
📄️ isScreenLocked
Returns whether or not the screen is currently locked.
📄️ isTouchscreenMode
Checks whether or not the running Client's Touch Screen mode is currently enabled.