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: 10.5   11.0   11.1   11.2   11.3   11.4   11.5   12.0   12.1   12.2    Statistic    FMM    Blog  

Window.Activate

Activates the window.

Component Version macOS Windows Linux Server iOS SDK License
Window 2.8 ✅ Yes ✅ Yes ❌ No ❌ No ❌ No Paid
MBS( "Window.Activate"; WindowRef )   More

Parameters

Parameter Description Example
WindowRef Window Reference is the unique OS level window ID. You can obtain this by using the Window.FindByTitle or Window.FindByIndex functions. Pass zero to access the frontmost window. 0

Result

Returns OK on success.

Description

Activates the window.
This function does more than just show. if the window has been minimized, it will restore it. Also the window is moved to front and made the current window for keyboard input.

Sadly windows limits which windows can go to front, so some windows may not come to front unless they are clicked on.

As activation can be asynchronously, the window may activate later, e.g. in a script pause or at the end of the script.

Use MBS( "Process.SetFrontMost" ) to move the whole app to the front.

See also

Release notes

Example Databases

Blog Entries

Created 18th August 2014, last changed 29th March 2019


WinSendMail.SetText - Window.AddBottomOverlay

Feedback: Report problem or ask question.


Start Chat