Window.Screen
-------------

Queries the screen index for the window.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Window](component_Window.md) | [16.3](newinversion163.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "Window.Screen"; WindowRef ) 

**MBS**( **"Window.Screen";** /\* Queries the screen index for the window. \*/  
**$WindowRef**) /\* Window Reference is the unique OS level window ID. You can obtain this by using the [Window.FindByTitle](WindowFindByTitle.md) or [Window.FindByIndex](WindowFindByIndex.md) functions. Pass zero to access the frontmost window.e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| WindowRef | Window Reference is the unique OS level window ID. You can obtain this by using the [Window.FindByTitle](WindowFindByTitle.md) or [Window.FindByIndex](WindowFindByIndex.md) 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

- [Screenshot](Screenshot.md)
- [Window.FindByIndex](WindowFindByIndex.md)
- [Window.FindByTitle](WindowFindByTitle.md)
- [Window.Screenshot](WindowScreenshot.md)

### Release notes

- **Version 16.3**
    - Added Window.Screen function.
- **Version 9.0**
    - Changed [WebView.Screenshot](http://www.mbsplugins.eu/WebViewScreenshot.shtml), [Window.Screenshot](http://www.mbsplugins.eu/WindowScreenshot.shtml) and [Screenshot](http://www.mbsplugins.eu/component_Screenshot.shtml) function to mark image with resolution for Windows.
- **Version 8.5**
    - Added [WebView.Screenshot](http://www.mbsplugins.eu/WebViewScreenshot.shtml) and [Window.Screenshot](http://www.mbsplugins.eu/WindowScreenshot.shtml) for iOS.

### Blog Entries

- [MBS FileMaker Plugin, version 16.3pr3](https://www.mbsplugins.de/archive/2026-06-22/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 19th June 2026 , last changed 19th June 2026

  
[Window.RunToolbarCustomizationPalette](WindowRunToolbarCustomizationPalette.md) - [Window.Screenshot](WindowScreenshot.md)

[HTML Version](WindowScreen.shtml)