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: 10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.4   11.5    Statistic    FMM    Blog  

RemoteControl.MouseButtons

Returns bit mask for pressed mouse buttons.

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

Parameters

none

Result

Returns 1 or error.

Description

Returns bit mask for pressed mouse buttons.
Returns indices of the mouse buttons currently down.
1 corresponds to left mouse button.
2 is for right mouse.
4 is for third button.
8 is for forth button.
16 is for fifth button.
You may get a value like 3 if both left and right mouse buttons are pressed.

If you query this in a script triggered by a button, you may be too late and the mouse already releases. For that case, please use EventMonitor.LastMouseClickButton instead.

Examples

Query mouse buttons:

Set Variable [ $buttons; MBS( "RemoteControl.MouseButtons" ) ]

See also

Release notes

  • Version 11.5
    • Added RemoteControl.MouseButtons function.

Blog Entries

Created 27th September 2021, last changed 27th September 2021


RemoteControl.HideCursor - RemoteControl.MouseX

Feedback: Report problem or ask question.




Links
MBS Xojo Chart Plugins

Start Chat