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  

App.FocusWindowTitle

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.FocusWindowTitle" )

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"; "F5"; "") ]
Set Variable [ $r ; Value: MBS("HotKey.SetEvaluate"; HotKeys::HotKey ID; "MBS( \"Msgbox\"; MBS(\"App.FocusWindowTitle\"))") ]

See also

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


App.Exit - App.GetDockBadgeLabel

Feedback: Report problem or ask question.


Start Chat