Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Hide/Show another application window

by Anonymous Monk
on May 29, 2002 at 18:24 UTC ( [id://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!
      :wq

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
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?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2024-04-25 19:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found