http://www.perlmonks.org?node_id=650394


in reply to How To Read Win32 Window Title Text

Win32::GuiTest should take care of that no problem.

Here's a working example...

use Win32; use Win32::GuiTest qw(:ALL); my $searchString = 'Internet Explorer'; for (FindWindowLike()) { my $title = GetWindowText($_); next unless ( $title ); if( $title =~ /$searchString/ ) { print "$title\n"; } }

Update: Added code example that applies to Internet Explorer