Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Scripting_function



Panel
titleDescription

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


Panel
titleClient Permission Restrictions

This scripting function has no Client Permission restrictions.


Panel
titleSyntax

system.gui.getScreens()

  • Parameters

Nothing

  • Returns

PySequence - A sequence of tuples of the form (index, width, height) for each screen device (monitor) available.

  • Scope

Client



Panel
titleCode Examples


Code Block
languagepy
titleCode Snippet
#This# This example fetches monitor data and pushes it to a table in the same container

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

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