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
In reply to Re: How To Read Win32 Window Title Text
by technojosh
in thread How To Read Win32 Window Title Text
by roho
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |