##
sub ConfirmUI {
my $searchString = shift;
my $uiFound = 0;
for (FindWindowLike()) {
my $title = GetWindowText($_);
next unless ( $title );
if( $title =~ /$searchString/ ) {
$uiFound = 1;
last;
}
}
return( $uiFound );
}
####
sub ConfirmUI {
my $searchString = shift;
for (FindWindowLike()) {
my $title = GetWindowText($_);
if ($title and $title =~ /$searchString/) {
return 1;
}
}
return 0;
}