in reply to Interaction of Perl and applications not written in Perl

Take a look at Win32::GuiTest. That module allows some spiffy interaction with the GUI part of other applications' windows. In particular, the SetForegroundWindow looks like it could work, together with GetForegroundWindow to get the hWnd for that app's main window, or, if that doesn't work out, with FindWindowLike.
  • Comment on Re: Interaction of Perl and applications not written in Perl