Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re: How To Read Win32 Window Title Text

by technojosh (Priest)
on Nov 12, 2007 at 22:05 UTC ( #650394=note: print w/replies, xml ) Need Help??

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

Replies are listed 'Best First'.
Re^2: How To Read Win32 Window Title Text
by roho (Canon) on Nov 12, 2007 at 22:37 UTC
    Thank you very much. That was exactly what I was looking for.

    "Its not how hard you work, its how much you get done."

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://650394]
[shmem]: and the clarinet delivers a goof job, too.
[shmem]: oofs! s/oof/oob/
[shmem]: erm... again. s/oob/ood/

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2017-04-27 18:49 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (512 votes). Check out past polls.