method monitorRectFromPoint

rect monitorRectFromPoint(int32 x,int32 y);

Argumente

Zurückgegebener Wert

This method gets the monitor rectangle for the given point. If monitor cannot be determine for the given point the primary monitor rectangle will be returned.
function onSample()
{
    var rect = appUtils.monitorRectFromPoint(appUtils.mouseX, appUtils.mouseY);
    if (rect)
    {
        shell.print("width x height = " + rect.width + " x " + rect.height);
    }
}