Is there any other way to find pid of a process by using Hwind? kindly helpuse Win32; use Win32::OLE qw(in with); use Win32::OLE::Const 'Microsoft Excel'; use Win32::OLE::Variant; use Win32::OLE::NLS qw(:LOCALE :DATE); use Win32::OLE; use Win32::OLE::Const; use OS2::Process; $Win32::OLE::Warn = 3; # die on errors... $Constant = Win32::OLE::Const->Load('Microsoft Excel'); $Excel = Win32::OLE->new('Excel.Application', sub {$_[0]->Quit;}) || die "Error launching MS Excel ".Win32::OLE->LastError(1); $hwnd = $Excel->{"Hwnd"}; ($pid, $tid) = WindowProcess($hwnd) ; print "\n\n $pid \n\n"; .... .... ...
In reply to Re^2: Install OS2::Process on windows
by Nalina
in thread Install OS2::Process on windows
by Nalina
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |