Nalina has asked for the wisdom of the Perl Monks concerning the following question:
How to find it for earlier versions of Excel. I read somewhere that it can be found using FindWindow API call. If so please tell me how to use this API call to find hwnd?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; $hwnd = $Excel->{"Hwnd"}; print "Excel Windows Handle: $hwnd\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to get windows handle?
by Corion (Patriarch) on Nov 22, 2006 at 10:00 UTC |