Skip to main content
Version: 8.3 Beta 🚧

system.vision.getScreens

Backwards Compatibility

This function replaces system.gui.getScreens. 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​

Get a list of all the monitors on the computer this client is open on. Use with system.vision.setScreenIndex() to move the client.

Client Permission Restrictions​

This scripting function has no Client Permission restrictions.

Syntax​

system.vision.getScreens()

Parameters​

Nothing

Returns​

List[Tuple[String, Integer, Integer]] - A sequence of tuples of the form (index, width, height) for each screen device (monitor) available.

Scope​

Vision Client

Code Examples​

Example #1 - Getting Screen Information
# This example fetches monitor data and pushes it to a table in the same container.

screens = system.vision.getScreens()
pyData = []
for screen in screens:
pyData.append([screen[0], screen[1], screen[2]])

# Push data to 'Table'.
event.source.parent.getComponent('Table').data = system.dataset.toDataSet(["screen","width","height"], pyData)