App.GetFocussedWindowTitle
--------------------------

Queries the title of the focussed window, when run.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [App](component_App.md) | [12.5](newinversion125.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ✅ Yes |

MBS( "App.GetFocussedWindowTitle" ) ### Parameters

none

### Result

Returns text or error.

### Description

Queries the title of the focussed window, when run.  
This may be used in calculations triggered by context menu or hotkeys to know which window is front.  
### Examples

Set hotkey to show dialog box with window title:

 Set Variable \[ $$hotkey ; Value: MBS ("[HotKey.Register](HotKeyRegister.md)"; "F5"; "") \]   
Set Variable \[ $r ; Value: MBS ("[HotKey.SetEvaluate](HotKeySetEvaluate.md)"; HotKeys::HotKey ID; "MBS ( \\"Msgbox\\"; MBS (\\"App.GetFocussedWindowTitle\\"))") \]  
### See also

- [HotKey.Register](HotKeyRegister.md)
- [HotKey.SetEvaluate](HotKeySetEvaluate.md)

### Release notes

- **Version 12.5**
    - Added [App.GetFocussedWindowTitle](https://www.mbsplugins.eu/AppGetFocussedWindowTitle.shtml) function.

### Blog Entries

- [MBS FileMaker Plugin 12.5 News](https://www.mbsplugins.de/archive/2022-11-17/MBS_FileMaker_Plugin_125_News/monkeybreadsoftware_blog_filemaker)
- [Neues MBS Plugin 12.5 für Claris FileMaker](https://www.mbsplugins.de/archive/2022-11-08/Neues_MBS_Plugin_125_für_Clar/monkeybreadsoftware_blog_filemaker)
- [MBS Plugin 12.5 for Claris FileMaker - More than 6800 Functions In One Plugin](https://www.mbsplugins.de/archive/2022-11-08/MBS_Plugin_125_for_Claris_File/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 12.5pr7](https://www.mbsplugins.de/archive/2022-11-04/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 12.5pr6](https://www.mbsplugins.de/archive/2022-11-02/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 25th October 2022 , last changed 31st October 2022

  
[App.GetDockIcon](AppGetDockIcon.md) - [App.GetProcessName](AppGetProcessName.md)

[HTML Version](AppGetFocussedWindowTitle.shtml)