常规API方法:
GetMonitorCapabilities function
SetMonitorBrightness
此方法对部分笔记本无效,GetMonitorCapabilities会返回不支持调节。
笔记本要用WMI方法:
powershell
$brightness = 50
$delay = 5
$myMonitor = Get-WmiObject -Namespace rootwmi -Class WmiMonitorBrightnessMethods
$myMonitor.wmisetbrightness($delay, $brightness)
C代码可参考
https://blog.csdn.net/weixin_34290000/article/details/86245160
最后
以上就是复杂云朵最近收集整理的关于控制显示器亮暗的API常规API方法:笔记本要用WMI方法:的全部内容,更多相关控制显示器亮暗内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复