Function Repository Resource:

Win32WindowToFront

Source Notebook

Bring a window to the foreground to ensure it is visible

Contributed by: Daniel Bigham

ResourceFunction["Win32WindowToFront"][hwnd]

brings the window with the handle hwnd to the foreground to ensure it is visible.

ResourceFunction["Win32WindowToFront"][func]

finds the window for which the given function func returns True when it is passed the window’s title, and brings it to the foreground.

Details and Options

ResourceFunction["Win32WindowToFront"] is only supported on Windows machines.

Examples

Basic Examples (2) 

Bring the Messages window to the front:

In[1]:=
ResourceFunction["Win32WindowToFront"][StringStartsQ["Messages - "]]

Bring the Eclipse IDE to the front:

In[2]:=
ResourceFunction["Win32WindowToFront"][StringEndsQ[" - Eclipse IDE"]]

Possible Issues (1) 

Win32WindowToFront is only supported on Windows operating systems:

In[3]:=
ResourceFunction["Win32WindowToFront"][]
Out[3]=
In[4]:=
$OperatingSystem
Out[4]=

Publisher

Daniel Bigham

Requirements

Wolfram Language 11.3 (March 2018) or above

Version History

  • 1.0.0 – 13 March 2019

Related Resources

License Information