my @win = FindWindowLike( 0, "Super App", undef ); foreach my $win ( @win ) { ShowWindow( $win, SW_HIDE ) if ( IsWindowVisible( $win ) ); }