wfsp has asked for the wisdom of the Perl Monks concerning the following question:

I have a Tk app. How can another script detect if it is running and, if so, move the focus to it?

Using Win32::Process::Info I can "see" the info for the app.

Could anyone help with the keywords to search on to get me started?

Using win32/activestate 5.8

Thanks

Replies are listed 'Best First'.
Re: Detecting a running Tk app (win32)
by PodMaster (Abbot) on Mar 06, 2005 at 09:38 UTC
    "Win32::GuiTest"

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.

      PodMaster

      Brilliant!

      Just what the doctor ordered.

      Many thanks,

      John