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.
ποΈ lockScreen
Used to put a running client in lock-screen mode.
ποΈ logout
Logs out of the client for the current user and brings the client to the login screen.
ποΈ openDesktop
Creates an additional Desktop in a new frame.
ποΈ openFile
Shows an Open File dialog box, prompting the user to choose a file to open.
ποΈ openFiles
Shows an Open File dialog box, prompting the user to choose a file or files to open.
ποΈ openURL
Opens the given URL or URI scheme outside of the currently running Client in whatever application the host operating system deems appropriate.
ποΈ openWindow
Opens the window with the given path.
ποΈ openWindowInstance
Operates exactly like system.vision.openWindow, except that if the named window is already open, then an additional instance of the window will be opened.
ποΈ playSoundClip
Plays a sound clip from a wav file to the system's default audio device.
ποΈ printToImage
This function prints the given component (such as a graph, container, entire window, etc) to an image file, and saves the file where ever the operating system deems appropriate.
ποΈ refreshBinding
This function will programmatically cause a SQL Query or DB Browse property binding to execute immediately.
ποΈ retarget
This function allows you to programmatically 'retarget' a Vision Client to a different project and/or different Gateway.
ποΈ saveFile
Prompts the user to save a new file named filename.
ποΈ setConnectionMode
Sets the connection mode for the Client session.
ποΈ setConnectTimeout
Sets the connect timeout for Client-to-Gateway communication.
ποΈ setLocale
Sets the user's current Locale.
ποΈ setOverlaysEnabled
Enables or disables the component quality overlay system.
ποΈ setReadTimeout
Sets the read timeout for Client-to-Gateway communication.
ποΈ setScreenIndex
Moves an open client to a specific monitor.
ποΈ setTouchscreenMode
Alters a running Client's Touch Screen mode on the fly.
ποΈ showColorInput
Prompts the user to pick a color using the default color-chooser dialog box.
ποΈ showConfirm
Displays a confirmation dialog box to the user with Yes and No options, and a custom message.
ποΈ showDiagnostics
Opens the client runtime diagnostics window, which provides information regarding performance, logging, active threads, connection status, and the console.
ποΈ showError
Displays an error-style message box to the user.
ποΈ showInput
Opens up a popup input dialog box.
ποΈ showMessage
Displays an informational-style message popup box to the user.
ποΈ showNumericKeypad
Displays a modal on-screen numeric keypad, allowing for arbitrary numeric entry using the mouse, or a finger on a touchscreen monitor.
ποΈ showPasswordInput
Pops up a special input box that uses a password field, so the text isn't echoed back in clear-text to the user.
ποΈ showTouchscreenKeyboard
Displays a modal on-screen keyboard, allowing for arbitrary text entry using the mouse, or a finger on a touchscreen monitor.
ποΈ showWarning
Displays a message to the user in a warning style popup dialog.
ποΈ swapTo
Performs a window swap from the current main screen window to the window specified.
ποΈ swapWindow
Performs a window swap.
ποΈ switchUser
Attempts to switch the current user on the fly.
ποΈ transform
Sets a component's position and size at runtime.
ποΈ unlockScreen
Unlocks the client, if it is currently in lock-screen mode.
ποΈ updateProject
Updates the Vision Client project with saved changes.
Functions by Scopeβ
- beep
- centerWindow
- closeDesktop
- closeParentWindow
- closeWindow
- color
- createImage
- createPopupMenu
- createPrintJob
- desktop
- exit
- exportCSV
- exportExcel
- exportHTML
- findWindow
- getAvailableLocales
- getAvailableTerms
- getClientId
- getConnectTimeout
- getConnectionMode
- getCurrentDesktop
- getCurrentWindow
- getDesktopHandles
- getEdition
- getExternalIpAddress
- getGatewayAddress
- getInactivitySeconds
- getKeyboardLayouts
- getLocale
- getOpenedWindowNames
- getOpenedWindows
- getParentWindow
- getReadTimeout
- getRoles
- getScreenIndex
- getScreens
- getSibling
- getSystemFlags
- getUsername
- getWindow
- getWindowNames
- goBack
- goForward
- goHome
- invokeLater
- isOverlaysEnabled
- isScreenLocked
- isTouchscreenMode
- lockScreen
- logout
- openDesktop
- openFile
- openFiles
- openURL
- openWindow
- openWindowInstance
- playSoundClip
- printToImage
- refreshBinding
- retarget
- saveFile
- setConnectTimeout
- setConnectionMode
- setLocale
- setOverlaysEnabled
- setReadTimeout
- setScreenIndex
- setTouchscreenMode
- showColorInput
- showConfirm
- showDiagnostics
- showError
- showInput
- showMessage
- showNumericKeypad
- showPasswordInput
- showTouchscreenKeyboard
- showWarning
- swapTo
- swapWindow
- switchUser
- transform
- unlockScreen
- updateProject
Constantsβ
- system.vision.ACCL_NONE
- system.vision.ACCL_CONSTANT
- system.vision.ACCL_FAST_TO_SLOW
- system.vision.ACCL_SLOW_TO_FAST
- system.vision.ACCL_EASE
- system.vision.COORD_SCREEN
- system.vision.COORD_DESIGNER
- system.vision.CONNECTION_MODE_DISCONNECTED
- system.vision.CONNECTION_MODE_READ_ONLY
- system.vision.CONNECTION_MODE_READ_WRITE
- system.vision.DESIGNER_FLAG
- system.vision.PREVIEW_FLAG
- system.vision.CLIENT_FLAG
- system.vision.WEBSTART_FLAG
- system.vision.APPLET_FLAG
- system.vision.FULLSCREEN_FLAG
- system.vision.SSL_FLAG
- system.vision.MOBILE_FLAG
- system.vision.LANDSCAPE
- system.vision.PORTRAIT