Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    Statistic    FMM    Blog  


Queries the title of the focussed window, when run.

Component Version macOS Windows Linux Server iOS SDK
App 12.5 ✅ Yes ✅ Yes ❌ No ❌ No ✅ Yes
MBS( "App.GetFocussedWindowTitle" )




Returns text or error.


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.


Set hotkey to show dialog box with window title:

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

See also

Release notes

Blog Entries

This function is free to use.

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

App.GetDockIcon - App.GetProcessName

💬 Ask a question or report a problem