DesktopHeight()

Syntax

Result = DesktopHeight(#Desktop)
Description
Returns the height of the specified desktop.

Parameters

#Desktop The index of the desktop. Should be always zero as only one web page is active at once.

Return value

Returns the height in pixels. The returned value is DPI independant, which means it's not the real pixel count if the DPI factor is not 1. To get the real pixel count, use DesktopScaledY() to scale the result (the 'DPI Aware' switch needs to be activated).

Remarks

ExamineDesktops() must be called before using this function to retrieve information about the available desktops.

Example

  ExamineDesktops()
  MessageRequester("Current resolution = " + DesktopWidth(0) + "x" +  DesktopHeight(0) + "x" + DesktopDepth(0))

Example: Real pixel height

  ExamineDesktops()
  MessageRequester("Real physical resolution = " + DesktopScaledX(DesktopWidth(0)) + "x" +  DesktopScaledY(DesktopHeight(0)) + "x" + DesktopDepth(0))

See Also

ExamineDesktops(), DesktopDepth(), DesktopX(), DesktopY(), DesktopWidth()

Supported OS

All

<- DesktopFrequency() - Desktop Index - DesktopMouseX() ->