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

Re: Python library - WMI.py RegistryValueChangeEvent

2015-04-07 Thread Khyati
_LOCAL_MACHINE' AND KeyPath='SoftwareTemp' AND ValueName='Name'" print raw_wql watcher = c.watch_for(raw_wql=raw_wql,wmi_class = "__ExtrinsicEvent") while True: try: process_created = watcher() print 'value changed' I have already emailed

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,

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 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 po