k0pp has asked for the wisdom of the Perl Monks concerning the following question:

Hello! I've been stuck for hours on this one... I'm using Win32::GUI::Loft::Design to create my dialog (including this combobox), the issue is this... My code is printing all of the windows that Win32::GUI::FindWindowLike finds, but it's only pushing 2 of the results into my combobox! Here's my code to populate the combobox: #######################################################
sub populate { defined(my $win = $Win32::GUI::Loft::window{winScreener}); my %windows; for ( FindWindowLike(0, qr/.+/, undef, undef, 1) ) { $windows{ GetWindowText($_) } = $_; } foreach my $k ( sort { $a cmp $b } keys %windows ) { print "Window found: $k\n"; $win->cbWselect->InsertItem($k); } }
######################################################### Also if someone could suggest a way to make FindWindowLike (only) grab the windows on my taskbar that would be phenominal. Any advice will be greatly appreciated!