Screen.Scale
------------

Queries scale of screen.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Screenshot](component_Screenshot.md) | [9.2](newinversion92.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ✅ Yes |

MBS( "Screen.Scale" { ; Screen ID } ) 

**MBS**( **"Screen.Scale";** /\* Queries scale of screen. \*/  
**$Screen ID**) /\* Optional; The zero based index of the screen to to target.  
Default is main screen.e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| Screen ID | The zero based index of the screen to to target.   Default is main screen. | 0 | Optional |

### Result

Returns number or error.

### Description

Queries scale of screen.  
Normal screens have 1, retina screens have 2 and on iPhone some have even 3.  
Windows has same scale factor for all screens, which can be fractions like 1.5.  
### See also

- [RemoteControl.MouseX](RemoteControlMouseX.md)
- [RemoteControl.MouseY](RemoteControlMouseY.md)

### Release notes

- **Version 9.2**
    - Added [Screen.Scale](http://www.mbsplugins.eu/ScreenScale.shtml) function.

### Example Databases

- [GraphicsMagick/Crop with Clicks](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/GraphicsMagick/Crop%20with%20Clicks.shtml#5ScriptAnchor_)
- [Overlay](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Overlay.shtml#15ScriptAnchor_)

### Blog Entries

- [Add a WebViewer to an Overlay window](https://www.mbsplugins.de/archive/2024-11-13/Add_a_WebViewer_to_an_Overlay_/monkeybreadsoftware_blog_filemaker)
- [Was gibt es neues bei MBS Version 9.2](https://www.mbsplugins.de/archive/2019-07-16/Was_gibt_es_neues_bei_MBS_Vers/monkeybreadsoftware_blog_filemaker)
- [Neues MBS FileMaker Plugin 9.2](https://www.mbsplugins.de/archive/2019-05-21/Neues_MBS_FileMaker_Plugin_92/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 9.2 - More than 5800 Functions In One Plugin](https://www.mbsplugins.de/archive/2019-05-21/MBS_FileMaker_Plugin_92_-_More/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 9.2pr1](https://www.mbsplugins.de/archive/2019-04-02/MBS_FileMaker_Plugin_version_9/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 21st March 2019 , last changed 20th November 2020

  
[Screen.Left](ScreenLeft.md) - [Screen.Top](ScreenTop.md)

[HTML Version](ScreenScale.shtml)