Wolfram Research

Function Repository Resource:

Win32WindowTitle

Source Notebook

Return the title of a window

Contributed by: Daniel Bigham

ResourceFunction["Win32WindowTitle"][hwnd]

returns the title of the window with the given window handle (HWND).

Details and Options

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

Examples

Basic Examples

Get the window handle of a particular window:

In[1]:=
SelectFirst[
 ResourceFunction["Win32Windows"][],
 StringEndsQ[ResourceFunction["Win32WindowTitle"][#], " - Wolfram Workbench"] &
 ]
Out[1]=

Get the titles of all windows:

In[2]:=
ResourceFunction["Win32WindowTitle"] /@ ResourceFunction["Win32Windows"][] // Short
Out[2]=

Possible Issues

Win32WindowTitle is only supported on Windows operating systems:

Out[3]=
In[4]:=
$OperatingSystem
Out[4]=

Requirements

Wolfram Language 11.3 (March 2018) or above

Resource History

See Also

License Information