win 10 锁屏之后,如何快速关闭显示器

2022 年 5 月 27 日
 bigdoing

直接关显示器,会导致 usb c 停止给笔记本充电 放一晚上,就没电了

1454 次点击
所在节点    问与答
4 条回复
ysc3839
2022 年 5 月 27 日
电源选项里有个 Console lock display off timeout ,最短可以设置成 1 分钟
darklights
2022 年 5 月 27 日
新建一个 TurnOffMonitor.ps1 ,输入内容:
Start-Sleep 2; (Add-Type '[DllImport("user32.dll")]public static extern int SendMessage(int hWnd, int hMsg, int wParam, int lParam);' -Name a -Pas)::SendMessage(-1,0x0112,0xF170,2) | Out-Null

新建一个计划任务
触发器:工作站锁定时
操作:启动程序:powershell.exe ( pwsh.exe ),参数:-File "C:\somewhere\TurnOffMonitor.ps1" -NonInteractive -NoProfile

如无意外,锁屏两秒后关闭显示器。
bigdoing
2022 年 5 月 27 日
感谢老铁,
有没有办法,在锁屏的时候,按一个键,手动触发,关闭显示器
Overfill3641
2022 年 5 月 28 日
Win10 锁屏默认 1 分钟后息屏。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/855725

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX