Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    Statistic    FMM    Blog  

RemoteControl.MouseX

Queries current position of the mouse cursor on screen.

Component Version macOS Windows Linux Server iOS SDK
RemoteControl 2.8 ✅ Yes ✅ Yes ❌ No ❌ No ❌ No
MBS( "RemoteControl.MouseX" )

Parameters

none

Result

Returns x coordinate.

Description

Queries current position of the mouse cursor on screen.
Result is in pixels on Windows and in points on macOS. See Screen.Scale to convert between pixels and points.

If you need to know which mouse button made the last click, please check EventMonitor.LastMouseClickButton function.

See also

Example Databases

This function checks for a license.

Created 18th August 2014, last changed 7th April 2022


RemoteControl.MouseButtons - RemoteControl.MouseY

💬 Ask a question or report a problem