Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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

Comment on Hide/Show another application window
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!
      :wq

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!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://170179]
Approved by FoxtrotUniform
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2014-09-22 01:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (176 votes), past polls