C# 设置Windows 7屏幕亮度
我想自己调节屏幕亮度。因为 Windows 只允许我在有限的范围内进行调整。我想将显示屏从 0% 调暗到 100%,然后将其关闭/打开。如果Windows可以自动执行(在:x分钟后调暗显示/在:x分钟后关闭显示),那应该是可能的。我尝试了一些通过谷歌找到的资源和课程。但它们都不起作用。
你有没有尝试过这个或者你能给我推荐任何工作代码吗?
感谢您的回复。
I want ajust screen brightness by my self. Because Windows lets me only adjusting in limited range. I want dim the display from 0 to 100% and turning it off/on. It should be possible if windows can it do automatically (Dim display after: x minutes/Turn off display after: x minutes). I tried some sources and classes what I found by google. But no of them works.
Have you ever tried this or can you recommend me any working code?
Thanks for responds.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用WmiSetBrightness方法:
有关更多详细信息,请查看WDDM 中的亮度控制 和监视器配置函数
You can use the WmiSetBrightness method:
For more details, please take a look at Brightness Control in WDDM and Monitor Configuration Functions
尝试这样:
try it like this: