Skip to content

GetDisplayCollect

Anthony Headley edited this page Apr 22, 2020 · 1 revision

GetDisplayByIndex() : objects

Brief:

Gets an table of connected displays

Paramiters:

Name | Type | Description | Optional -- | -- | --

Returns:

⚠ Needs more information of structure of returned data object ⚠

Type | Description userdata | an array of userdata objects representing a display nil | If the display does not exist of is not connected.

Examples:

    local d = GetDisplayCollect()
    for i = 1, d.count, 1 do
        if d[i] == nil then
            Echo("%d nil", i)                       -- x nil
        else
            Echo("%d %s", d[i].index, d[i].name)    -- x Display x
        end
    end
Clone this wiki locally