talwyn has asked for the wisdom of the Perl Monks concerning the following question:
Win32::OLE->new( $classid,\&quit) works and I can directly drive the object's methods and retrieve events. Problem is I don't want to redevelop the controlling application for this, so I tried Win32::OLE->GetActiveObject().
Win32::OLE->GetActiveObject($classid) however fails to return a reference to the control. I have the application that uses the control running but trying to get a reference returns undef and Win32::OLE->LastError() returns 0.
My objective was to listen in to event triggers to verify control activity. Am I missing something or is there a better approach to accomplishing this sort of hook?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Win32::OLE Question
by Anonymous Monk on Nov 12, 2008 at 11:14 UTC |