Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Hide/Show another application window

by Anonymous Monk
on May 29, 2002 at 18:24 UTC ( #170179=perlquestion: print w/replies, xml ) Need Help??
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

How do I control another application window, i.e. find when application running and hide/show when I need?

Thanks for any suggestions

Replies are listed 'Best First'.
Re: Hide/Show another application window
by Courage (Parson) on May 30, 2002 at 07:30 UTC
    This greatly depends on your OS, also depends on permissions to do that.

    Win32 has module Win32::GutTest which has enough functions to find and control applcation window. As another way if your application implements IDisplatch interface, you can manage it by using Win32::OLE.

    Can't give you help for other OSes

    Good luck!

Re: Hide/Show another application window
by Biker (Priest) on May 29, 2002 at 18:36 UTC

    That has to be done client-side. I.e. JavaScript.

    Everything went worng, just as foreseen.

      Perl != CGI, Biker. :-)

      And to the original poster: I doubt that it's particularly easy to do, and it's certainly platform dependent. You'd pretty much have to go through the window system: at best, you'd be able to ask "which process has the input focus?"; at worst, you'd have to have the target process send yours a message when it receives (and loses) focus.

      I hope there's an easier, cleaner way, but I don't know of one.

      The hell with paco, vote for Erudil!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://170179]
Approved by FoxtrotUniform
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (10)
As of 2018-06-20 19:49 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (117 votes). Check out past polls.