| Components | All | New | MacOS | Windows | Linux | iOS | ||||
| Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old | |
Window.Screen
Queries the screen index for the window.
| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
| Window | 16.3 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |
MBS( "Window.Screen"; WindowRef ) More
Parameters
| Parameter | Description | Example |
|---|---|---|
| WindowRef | Window Reference is the unique OS level window ID. You can obtain this by using the Window.FindByTitle or Window.FindByIndex functions. Pass zero to access the frontmost window. | 0 |
Result
Returns number, empty or error.
Description
Queries the screen index for the window.May return empty result if the window isn't visible.
The main screen has index 0.
See also
Release notes
- Version 16.3
- Added Window.Screen function.
- Version 9.0
- Changed WebView.Screenshot, Window.Screenshot and Screenshot function to mark image with resolution for Windows.
- Version 8.5
- Added WebView.Screenshot and Window.Screenshot for iOS.
This function checks for a license.
Created 19th June 2026, last changed 19th June 2026