in reply to Re^2: How to Retrieve another Process' Window Title?
in thread How to Retrieve another Process' Window Title?

This appears, at least, not very robust to me.

What versions of each are you running? (perl , os, modules/Devel::Modlist)

  • Comment on Re^3: How to Retrieve another Process' Window Title?

Replies are listed 'Best First'.
Re^4: How to Retrieve another Process' Window Title?
by ozboomer (Friar) on Feb 07, 2011 at 03:49 UTC

            What versions of each are you running? (perl , os, modules/Devel::Modlist)

    As I mentioned at the start of my posting:-

           I'm running ActiveState perl v5.8.9 under Windows XP SP3 (32-bit)

    ...cmd.exe reports WinXP as Version 5.1.2600... and Win32::Process::Info is at 1.016.

      Please use Devel::Modlist to generate a list of modules, its more informative
Re^4: How to Retrieve another Process' Window Title?
by ozboomer (Friar) on Feb 07, 2011 at 21:17 UTC

        What versions of each are you running? (perl , os, modules/Devel::Modlist)

    Apologies for not understanding what was requested. Here's the output you were asking about:-

    c:\>perl -MDevel::Modlist script.pl ActivePerl::Config ActiveState::Path 1.01 AutoLoader 5.70 C:::Perl::site::lib::sitecustomize.pl Carp 1.10 Config Config_heavy.pl Cwd 3.31 DynaLoader 1.0901 Exporter 5.63 Exporter::Heavy 5.63 File::Basename 2.77 File::Spec 3.31 File::Spec::Unix 3.3 File::Spec::Win32 3.3 Time::Local 1.1901 Win32 0.39 Win32::API 0.59 Win32::API::Struct 0.50 Win32::API::Type 0.59 Win32::OLE 0.1709 Win32::OLE::Const Win32::OLE::Lite Win32::OLE::Variant Win32::Process::Info 1.016 Win32::Process::Info::WMI 1.016 XSLoader 0.10 base 2.14 constant 1.19 integer 1.00 overload 1.06 re 0.0601 vars 1.01 warnings 1.05_01 warnings::register 1.01

    ...and the following message was also displayed, as per normal for this script:-

    Use of uninitialized value in exists at C:/Perl/site/lib/Win32/Process/Info.pm line 477.
    
    Thanks.