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

Hi monks,
Can anyone help me in getting window handle (Hwind) of excel application automated through OLE, using win32::API GetWindow function?
This is how I open excel
use Win32; use Win32::OLE qw(in with); use Win32::OLE::Const 'Microsoft Excel'; $Constant = Win32::OLE::Const->Load('Microsoft Excel'); $Excel = Win32::OLE->new('Excel.Application', 'Quit') || die "Error launching MS Excel ".Win32::OLE->LastError;
Also I have installed Office 2000.

Replies are listed 'Best First'.
Re: Getwindow function in Win32::API
by bsdz (Friar) on Mar 30, 2007 at 09:42 UTC
      can anyone tell me how to use FindWindow function of Win32::API to get window handle?