Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

App.GetFocussedWindowTitle

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

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