Skip to content

GetDisplayByIndex

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

GetDisplayByIndex(int:display Index) : display_handle

Brief:

Gets a display_handle given a display index number

Paramiters:

Name | Type | Description | Optional -- | -- | -- display index | int | Requested Display Index |

Returns:

Type | Description display_handle | The display_handle of the requested display nil | If the selected display does not exits.

Examples:

-- This example is contrived since Confirm() displays on all screens
local display = GetDisplayByIndex(1)
Confirm(display, "This is display 1")
display = GetDisplayByIndex(2)
Confirm(display, "This is display 2")
Clone this wiki locally