Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

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