Win10 桌面右键菜单添加“关闭显示器”
首页 > IT笔记    作者:linjian   2020年7月19日 12:19 星期日   热度:1056°   百度已收录  
时间:2020-7-19 12:19   热度:1056° 

1.打开注册表编辑器(Win+R-输入"regedit"-回车)定位到:

HKEY_CLASSES_ROOT\DesktopBackground\Shell

2.右击 shell-新建-项,新建项命名为:Atmonitor

3. 在新建的"Atmonitor"项右侧新建三个字符串值:MUIVerb、icon、Position

MUIVerb 中填入:关闭显示器(&M)

Icon 中填入:imageres.dll,193

Position 中填入:Bottom

4. 右击 Atmonitor -新建-项,新建项命名为:command

5. 在新建的"command"项右侧(默认)中填入:

PowerShell -windowstyle hidden -command "(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)"

6. 重启计算机!桌面空白处右键会出现"关闭显示器"项。

效果图如下:

二维码加载中...
本文作者:linjian      文章标题: Win10 桌面右键菜单添加“关闭显示器”
本文地址:http://linzy.cc/post/17
版权声明:若无注明,本文皆为“ZhiYuan's Blog”原创,转载请保留文章出处。

返回顶部    首页    手机版本    后花园   会员注册   
版权所有:ZhiYuan's Blog    站长:ZhiYuan 程序:emlog