Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: TK Toplevel Window List

by Anonymous Monk
on Feb 13, 2013 at 17:02 UTC ( #1018577=note: print w/ replies, xml ) Need Help??


in reply to Re^2: TK Toplevel Window List
in thread TK Toplevel Window List

Finally was able to retrieve the window list from Perl

Win32 using some ugly code:<\p>

if ($^O eq "MSWin32") { my @pt = `tasklist /v`; # Get the process list from Windows (NT, 2 +K, XP, 7) foreach my $p (@pt) # One process per line { if ($p =~ m/perl\.exe/ig) # Keep only the Perl processes { my @p2 = split(/\s+/, $p, 11); # Any space after 11 is par +t of the window title my $nm = $p2[10]; $nm =~ s/\s+$//g; # Remove trailing whitespace ... } } } else { # Use interps approach }

Thanks again for the great inputs!


Comment on Re^3: TK Toplevel Window List
Download Code
Re^4: TK Toplevel Window List
by Anonymous Monk on Feb 14, 2013 at 08:16 UTC
    Ay carumba, so you're not gonna search Tk::Wm documentation for list?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1018577]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2015-07-04 03:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls