Component: EventMonitor 
------------------------

Watch events and query mouse button of last mouse click.

| Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|
| [5.2](newinversion52.md "First functions introduced with version 5.2.") / [7.3](newinversion73.md "Newest functions in version 7.3.") | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |

  
| Item | Details |
|:--|:--|
| [EventMonitor.Clear](EventMonitorClear.md)   Clears last event captured. | Mac/Win   5.2 |
| [EventMonitor.ClearCardWindow](EventMonitorClearCardWindow.md)   Clears trigger for card window. | Mac/Win   7.3 |
| [EventMonitor.GetEnabled](EventMonitorGetEnabled.md)   Queries whether event monitor is enabled. | Mac/Win   6.3 |
| [EventMonitor.Install](EventMonitorInstall.md)   Installs event monitor. | Mac/Win   5.2 |
| [EventMonitor.LastMouseClickButton](EventMonitorLastMouseClickButton.md)   Queries the index of the last pressed mouse button. | Mac/Win   5.2 |
| [EventMonitor.LastMouseClickIsDoubleClick](EventMonitorLastMouseClickIsDoubleClick.md)   Queries if last recognized mouse click is a double click. | Mac/Win   5.2 |
| [EventMonitor.LastMousePositionX](EventMonitorLastMousePositionX.md)   Queries last mouse position. | Mac/Win   7.3 |
| [EventMonitor.LastMousePositionY](EventMonitorLastMousePositionY.md)   Queries last mouse position. | Mac/Win   7.3 |
| [EventMonitor.SetCardWindow](EventMonitorSetCardWindow.md)   Sets script trigger for clicks outside card. | Mac/Win   7.3 |
| [EventMonitor.SetEnabled](EventMonitorSetEnabled.md)   Enables or disables event monitor. | Mac/Win   6.3 |

10 functions shown.

These functions require a license (60%).

### Release notes

- **Version 12.5**
    - Improved [EventMonitor](https://www.mbsplugins.eu/component_EventMonitor.shtml) functions for Windows to recognize better 3rd, 4th or 5th mouse button.
- **Version 10.2**
    - Improved performance for [EventMonitor](https://www.mbsplugins.eu/component_EventMonitor.shtml) functions on Windows to avoid problems moving the mouse.
- **Version 10.0**
    - Improved performance for [EventMonitor](https://www.mbsplugins.eu/component_EventMonitor.shtml) functions on Windows to avoid problems moving the mouse.
- **Version 9.3**
    - Added mode parameter to [FM.RunScript](http://www.mbsplugins.eu/FMRunScript.shtml) and [EventMonitor.SetCardWindow](http://www.mbsplugins.eu/EventMonitorSetCardWindow.shtml) functions.
    - Added parameter for script parameter for [EventMonitor.SetCardWindow](http://www.mbsplugins.eu/EventMonitorSetCardWindow.shtml) function.
- **Version 8.2**
    - Fixed [EventMonitor.LastMousePositionX](http://www.mbsplugins.eu/EventMonitorLastMousePositionX.shtml) and [EventMonitor.LastMousePositionY](http://www.mbsplugins.eu/EventMonitorLastMousePositionY.shtml) for Windows.
- **Version 7.3**
    - Added [EventMonitor.ClearCardWindow](http://www.mbsplugins.eu/EventMonitorClearCardWindow.shtml) and [EventMonitor.SetCardWindow](http://www.mbsplugins.eu/EventMonitorSetCardWindow.shtml) to handle clicks outside a card window.
    - Added [EventMonitor.LastMousePositionY](http://www.mbsplugins.eu/EventMonitorLastMousePositionY.shtml) and [EventMonitor.LastMousePositionX](http://www.mbsplugins.eu/EventMonitorLastMousePositionX.shtml) functions.

### Blog Entries

- [MBS FileMaker Plugin, version 12.5pr6](https://www.mbsplugins.de/archive/2022-11-02/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [Seven things to add to your FileMaker solution today with MBS Plugin](https://www.mbsplugins.de/archive/2021-03-21/Seven_things_to_add_to_your_Fi/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 10.2pr1](https://www.mbsplugins.de/archive/2020-04-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [Neues MBS FileMaker Plugin 10.0](https://www.mbsplugins.de/archive/2020-01-14/Neues_MBS_FileMaker_Plugin_100/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 10.0 - More than 6000 Functions In One Plugin](https://www.mbsplugins.de/archive/2020-01-14/MBS_FileMaker_Plugin_100_-_Mor/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 9.6pr1](https://www.mbsplugins.de/archive/2019-12-02/MBS_FileMaker_Plugin_version_9/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 5.2 for OS X/Windows - More than 3200 Functions](https://www.mbsplugins.de/archive/2015-08-04/MBS_FileMaker_Plugin_52_for_OS/monkeybreadsoftware_blog_filemaker)

### Example Databases

- [Window/Card Window Test](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Window/Card%20Window%20Test.shtml#1ScriptAnchor_)
- [Window/EventMonitor DoubleClick](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Window/EventMonitor%20DoubleClick.shtml#1ScriptAnchor_)
- [Window/Popover CardWindow](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Window/Popover%20CardWindow.shtml#1ScriptAnchor_)

[HTML Version](component_EventMonitor.shtml)