This is my first post on SO, however a lot of Googling has led me here over the years.
I am trying to detect brightness changes on my laptop using a set of tools called Windows Management Instrumentation (WMI), particularly an event class called WmiMonitorBrightnessEvent and a watch_for listener. The use of the latter is described here:
c = wmi.WMI ()
watcher = c.watch_for (
notification_type="Creation",
wmi_class="Win32_Process",
delay_secs=2,
Name='calc.exe'
)
calc_created = watcher ()
And documentation for the WMI event is found here:
However, only the second example on the timgolden website works, which is for detecting if the calculator gets opened and closed.
Please guide me on adapting the code to detect brightness changes on my laptop! Best