MonitorGetPrimary

Returns the number of the primary monitor.

Primary := MonitorGetPrimary()

Parameters

This function has no parameters.

Return Value

Type: Integer

This function returns the number of the primary monitor. In a single-monitor system, this will be always 1.

Related

SysGet, Monitor functions

Examples

See example #1 on the Monitor Functions page for a demonstration of this function.