system.vision.getDesktopHandles
This function replaces system.gui.getDesktopHandles. Any scripts containing Vision Client scoped functions that were replaced with system.vision syntax will still work to maintain backwards compatibility.
This function is used in Python Scripting.
Descriptionβ
Gets a list of all secondary handles of the open desktops associated with the current client. In this case, secondary means any desktop frame opened by the original client frame.
For example, if the original client opened two new frames ('left client' and 'right client'), then this function would return ['left client', 'right client'].
See the Multi-Monitor Clients page for more details.
This function is available on secondary desktops via the system.vision.desktop function.
Client Permission Restrictionsβ
This scripting function has no Client Permission restrictions.
Syntaxβ
system.vision.getDesktopHandles()
Parametersβ
Nothing
Returnsβ
List[Any] - A Python list of unicode strings, representing the handle of all secondary desktop frames.
Scopeβ
Vision Client
Code Examplesβ
# The following example list all handles (except the main client)
# in the client console (Help -> Diagnostics -> Console)
print system.vision.getDesktopHandles()
# Create the header and fetch handle names
header = ["Desktop Names"]
handleList = system.vision.getDesktopHandles()
# change the handle name list into a column
handleColumn = [[name] for name in handleList]
# display the handle list in a table component
event.source.parent.getComponent('Handles Table').data = system.dataset.toDataset(header, handleColumn)