Window.GetClassName
-------------------

Queries the internal class name for the window.

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

MBS( "Window.GetClassName"; WindowRef ) 

**MBS**( **"Window.GetClassName";** /\* Queries the internal class name for the 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 \*/ 

### 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 |

### Result

Returns class name as text.

### Description

Queries the internal class name for the window.  
Sometimes it's easier to identify a window by the class name than the title. The title may change or be localized, but the class name typically stays the same.  
Added Mac support in Plugin version 3.3.  
### See also

- [Window.FindByIndex](WindowFindByIndex.md)
- [Window.FindByTitle](WindowFindByTitle.md)

### Example Databases

- [RemoteControl/Windows List](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/RemoteControl/Windows%20List.shtml#1ScriptAnchor_)
- [Window/Window List](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Window/Window%20List.shtml#1ScriptAnchor_)

### Blog Entries

- [MBS Filemaker Plugin, version 3.3pr6](https://www.mbsplugins.de/archive/2013-07-12/MBS_Filemaker_Plugin_version_3/monkeybreadsoftware_blog_filemaker)
- [MBS Filemaker Plugin, version 2.8pr5](https://www.mbsplugins.de/archive/2012-06-22/MBS_Filemaker_Plugin_version_2/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

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

  
[Window.GetAlpha](WindowGetAlpha.md) - [Window.GetCurrentTag](WindowGetCurrentTag.md)

[HTML Version](WindowGetClassName.shtml)