Re: Python library - WMI.py RegistryValueChangeEvent

2015-04-07 Thread Khyati
Resolved: watcher = c.watch_for(raw_wql=raw_wql,wmi_class = "RegistryValueChangeEvent") is the right way - instead of wmi_class = __ExtrinsicEvent Thanks, everyone. On Tuesday, April 7, 2015 at 11:30:33 AM UTC-4, Khyati wrote: > Thanks TJG for your reply. > I guess at this point the question is

Re: Python library - WMI.py RegistryValueChangeEvent

2015-04-07 Thread Khyati
Thanks TJG for your reply. I guess at this point the question is why is the event not returned to wmi as Extrinsic. May be I should explicitly initialize the class _wmi_watcher and set self.is_extrinsic = True? Thanks Khyati On Tuesday, April 7, 2015 at 11:18:39 AM UTC-4, Tim Golden wrote: >

Re: Python library - WMI.py RegistryValueChangeEvent

2015-04-07 Thread Tim Golden
On 07/04/2015 15:52, Tim Golden wrote: > On 07/04/2015 15:35, Khyati wrote: >> On Tuesday, April 7, 2015 at 10:31:47 AM UTC-4, Chris Angelico wrote: >>> On Wed, Apr 8, 2015 at 12:15 AM, Khyati wrote: Thanks for taking a look, Chris. The error trace: traceback (most recent call last):

Re: Python library - WMI.py RegistryValueChangeEvent

2015-04-07 Thread Tim Golden
On 07/04/2015 15:35, Khyati wrote: > On Tuesday, April 7, 2015 at 10:31:47 AM UTC-4, Chris Angelico wrote: >> On Wed, Apr 8, 2015 at 12:15 AM, Khyati wrote: >>> Thanks for taking a look, Chris. >>> The error trace: >>> traceback (most recent call last): >>> File "MonitorRegistry.py", line 18, in

Re: Python library - WMI.py RegistryValueChangeEvent

2015-04-07 Thread Khyati
On Tuesday, April 7, 2015 at 10:31:47 AM UTC-4, Chris Angelico wrote: > On Wed, Apr 8, 2015 at 12:15 AM, Khyati wrote: > > Thanks for taking a look, Chris. > > The error trace: > > traceback (most recent call last): > > File "MonitorRegistry.py", line 18, in > >process_created = watcher() > >

Re: Python library - WMI.py RegistryValueChangeEvent

2015-04-07 Thread Chris Angelico
On Wed, Apr 8, 2015 at 12:15 AM, Khyati wrote: > Thanks for taking a look, Chris. > The error trace: > traceback (most recent call last): > File "MonitorRegistry.py", line 18, in >process_created = watcher() > File "C:\Python27\lib\site-packages\wmi.py", line 1195, in __call__ >handle_c

Re: Python library - WMI.py RegistryValueChangeEvent

2015-04-07 Thread Khyati
Thanks for taking a look, Chris. The error trace: traceback (most recent call last): File "MonitorRegistry.py", line 18, in process_created = watcher() File "C:\Python27\lib\site-packages\wmi.py", line 1195, in __call__ handle_com_error () File "C:\Python27\lib\site-packages\wmi.py", line

Re: Python library - WMI.py RegistryValueChangeEvent

2015-04-06 Thread Chris Angelico
On Tue, Apr 7, 2015 at 8:02 AM, Khyati wrote: > I have a question about RegistryValueChangeEvent that I have not been able to > find an answer to on the internet so far. I would appreciate any help since I > have already spent a lot of time finding any material that explains this: > > What I am

Python library - WMI.py RegistryValueChangeEvent

2015-04-06 Thread Khyati
I have a question about RegistryValueChangeEvent that I have not been able to find an answer to on the internet so far. I would appreciate any help since I have already spent a lot of time finding any material that explains this: What I am trying to do: - create an event when a value for a regi