Window.SetIgnoresMouseEvents
----------------------------

Disables mouse input for this window.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Window](component_Window.md) | [1.1](newinversion11.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |

MBS( "Window.SetIgnoresMouseEvents"; WindowRef; Value ) 

**MBS**( **"Window.SetIgnoresMouseEvents";** /\* Disables mouse input for this window. \*/  
**$WindowRef**; /\* Window Reference is the unique OS level window ID. You can obtain this by using the [Window.FindByTitle](WindowFindByTitle.md) or [Window.FindByIndex](WindowFindByIndex.md) functions. Pass zero to access the frontmost window.e.g. 0 \*/   
**$Value**) /\* Whether to ignore mouse events or not. Pass 1 to ignore mouse events or 0 to not ignore mouse events.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| WindowRef | Window Reference is the unique OS level window ID. You can obtain this by using the [Window.FindByTitle](WindowFindByTitle.md) or [Window.FindByIndex](WindowFindByIndex.md) functions. Pass zero to access the frontmost window. | 0 |
| Value | Whether to ignore mouse events or not. Pass 1 to ignore mouse events or 0 to not ignore mouse events. | 1 |

### Description

Disables mouse input for this window.  
On macOS you can disable mouse events for a given window. All Mouse Events will fall to the window behind.  
### See also

- [Overlay.SetIgnoresMouseEvents](OverlaySetIgnoresMouseEvents.md)
- [Window.FindByIndex](WindowFindByIndex.md)
- [Window.FindByTitle](WindowFindByTitle.md)
- [Window.IgnoresMouseEvents](WindowIgnoresMouseEvents.md)

This function checks for a license.

Created 18th August 2014 , last changed 10th August 2020

  
[Window.SetFullScreenPrimary](WindowSetFullScreenPrimary.md) - [Window.SetMaxHeight](WindowSetMaxHeight.md)

[HTML Version](WindowSetIgnoresMouseEvents.shtml)