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: 11.3   11.4   11.5   12.0   12.1   12.2   12.3   12.4   12.5   13.0    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

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

App.GetDockIcon - App.GetProcessName

Feedback: Report problem or ask question.

Start Chat