电影中心 精品软件 联系我们

 找回密码
 立即注册

QQ登录

只需一步,快速开始

Close
查看: 372|回复: 0

如何为 Win10 桌面右键菜单添加“关闭显示器”功能

[复制链接]
发表于 2020-5-21 05:58:46 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

×

实现步骤:

5 e1 w$ y) z. Z. f

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

HKEY_CLASSES_ROOT\DesktopBackground\Shell

6 H& x; z$ o5 I' P9 e

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

; W$ F/ o9 L( m, M

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

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

Icon 中填入:imageres.dll,193

Position 中填入:Bottom

% L0 D( d8 p$ h5 P) }) A) W; Z0 b

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


2 A& P! T0 U# a8 x$ l2 p

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

2 |+ {; \% Y6 K5 e

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)"

+ c* b7 ^" k4 Q  M+ [

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


! h$ o1 U7 w3 _8 W6 C

如何为 Win10 桌面右键菜单添加“关闭显示器”功能

如何为 Win10 桌面右键菜单添加“关闭显示器”功能

9 ?0 F: b9 s4 g7 S

一键导入注册表(附删除): 桌面右键关闭显示器.rar (866 Bytes, 下载次数: 0)

4 A3 R- Q! i/ ~2 \7 f
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|手机版|Archiver|帮助|古城IT技术联盟 ( 鲁ICP备06030014号 )

GMT+8, 2024-5-3 05:08 , Processed in 0.121826 second(s), 8 queries , Gzip On, Redis On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表