RemoteControl.MouseButtons
--------------------------

Returns bit mask for pressed mouse buttons.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [RemoteControl](component_RemoteControl.md) | [11.5](newinversion115.md) | ✅ 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](EventMonitorLastMouseClickButton.md) instead.  
### Examples

Query mouse buttons:

 Set Variable \[ $buttons ; MBS ( "RemoteControl.MouseButtons" ) \]  
### See also

- [EventMonitor.LastMouseClickButton](EventMonitorLastMouseClickButton.md)

### Release notes

- **Version 11.5**
    - Added [RemoteControl.MouseButtons](https://www.mbsplugins.eu/RemoteControlMouseButtons.shtml) function.

### Blog Entries

- [New in version 11.5 of MBS FileMaker Plugin](https://www.mbsplugins.de/archive/2021-11-30/New_in_version_115_of_MBS_File/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 11.5pr1](https://www.mbsplugins.de/archive/2021-10-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

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

  
[RemoteControl.IsShiftKeyDown](RemoteControlIsShiftKeyDown.md) - [RemoteControl.MouseX](RemoteControlMouseX.md)

[HTML Version](RemoteControlMouseButtons.shtml)