EventMonitor.Clear
------------------

Clears last event captured.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [EventMonitor](component_EventMonitor.md) | [5.2](newinversion52.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "EventMonitor.Clear" ) ### Parameters

none

### Result

Returns OK or error.

### Description

Clears last event captured.  
You should not need to call this, except maybe on the end of the script to make sure you clear the last event for next script call.  
This includes which button was last clicked. Plugin version 9.4 also forgets whether it was a double click.  
### See also

- [EventMonitor.ClearCardWindow](EventMonitorClearCardWindow.md)
- [EventMonitor.SetCardWindow](EventMonitorSetCardWindow.md)

### Release notes

- **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.

### Blog Entries

- [EventMonitor](https://www.mbsplugins.de/archive/2015-06-22/EventMonitor/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 21st June 2015 , last changed 24th July 2019

  
[ErrorLog](ErrorLog.md) - [EventMonitor.ClearCardWindow](EventMonitorClearCardWindow.md)

[HTML Version](EventMonitorClear.shtml)