Back

GetDisplayWidth

JS Py
Hello World

Get the display width of the app in pixels.

app.GetDisplayWidth() → Number: pixel

Therefore virtual buttons won't be included to the value.

See Also: GetDisplayHeight, GetScreenWidth

Example - Show display width

function OnStart()
{
    var width = app.GetDisplayWidth();
    app.Alert( width );
}
def OnStart():
    width = app.GetDisplayWidth()
    app.Alert( width )
    Copy     Copy All       Run