Overlay.MouseX
--------------

Queries current position of the mouse cursor on screen.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Overlay](component_Overlay.md) | [14.1](newinversion141.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "Overlay.MouseX" ) ### Parameters

none

### Result

Returns x coordinate.

### Description

Queries current position of the mouse cursor on screen.  
Result is in points on macOS and Windows, so you can use it with the other [overlay](component_Overlay.md) functions.  
### See also

- [Overlay.MouseY](OverlayMouseY.md)
- [Overlay.Move](OverlayMove.md)

### Example Databases

- [Overlay](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Overlay.shtml#8ScriptAnchor_)

### FileMaker Magazin

- [Ausgabe 4/2025, Seite 31](https://filemaker-magazin.de/neuigkeit/4297-Appetithappen-FMM_202504)

This function is free to use.

Created 25th February 2024 , last changed 25th February 2024

  
[Overlay.List](OverlayList.md) - [Overlay.MouseY](OverlayMouseY.md)

[HTML Version](OverlayMouseX.shtml)