Vizard 7 » Command Index » Vizard modules » viz » <viz:window>.getMonitorList
7.6

<viz:window>.getMonitorList

Get information about all active monitors

<viz:window>.getMonitorList()  

Remarks

This command returns a list of MonitorInfo objects containing information about each active monitor on the machine.

The MonitorInfo object has the following attributes:

Attribute

Description

id

The 1-based ID number of the monitor.

name

The name provided by the monitor.

position

The (x,y) upper-left position of the monitor in the virtual desktop.

size

The (width,height) of the monitor in pixels.

primary

A True/False value indicating whether this is the primary monitor.

Return Value

List of MonitorInfo objects (see remarks)

Example

for monitor in viz.window.getMonitorList():
    print(monitor.name)
    print('   ',monitor)

See also

<viz:window>.getFullscreenMonitor
<viz:window>.setFullscreenMonitor