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 (2) 

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[41]=

Possible Issues (1) 

Win32WindowTitle is only supported on Windows operating systems:

In[42]:=
ResourceFunction["Win32WindowTitle"][]
Out[42]=
In[43]:=
$OperatingSystem
Out[43]=

Publisher

Daniel Bigham

Requirements

Wolfram Language 11.3 (March 2018) or above

Version History

  • 1.0.0 – 11 March 2019

Related Resources

License Information