Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Minimize the black screen

Status
Not open for further replies.

MoshiachNow

IS-IT--Management
Feb 6, 2002
1,851
IL
HI,

For my reasons I need to minimize the main black terminal screen and then restore it back.

Will appreciate any advise.
Thanks

Long live king Moshiach !
 
Not my answer I stole it from another site, Apparently it's a little tricky to make sure you are minimizing the right window...




use Win32::GUI;

my $title_part = shift;
my $class_part = shift;
$title_part or die "Supply title substring\n";
$class_part ||= '';

my $perlwindow = GUI::GetPerlWindow();

for (
my $window = GUI::GetWindow( GUI::GetDesktopWindow(), GW_CHILD );
$window;
$window = GUI::GetWindow( $window, GW_HWNDNEXT )
)
{
next if $window == $perlwindow;
my $title = GUI::Text($window);
my $class = GUI::GetClassName($window);
if ( $title =~ /$title_part/ and $class =~ /$class_part/ )
{
warn "Minimizing $title: $class\n";
GUI::Minimize($window);
}
 
Thanks,

My final solution was :

#Hide dos window
my $perlwin = Win32::GUI::GetPerlWindow();
Win32::GUI::Hide($perlwin);

#do domething here ....

#restore dos window
Win32::GUI::Show( $perlwin );


Long live king Moshiach !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top