I want to write a script in Python (3.5 here) to control the brightness of the screen on my laptop (got a HP EliteBook, don't know if it's important). Does anyone know if there's some code/module for this ?
Thanks in advance everyone, have a good day !
Finally found a way to interact with the screen in Windows 10. Thanks martineau, PyWin32 was a part of the solution. WMI package was the other part.
wmi.WMI(namespace='wmi').WmiMonitorBrightnessMethods()[0].WmiSetBrightness(brightness, 0)
where brightness is an int between 0 and 100.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With