马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
实现步骤: * ]" _, P" t8 I# p& @8 |" J
1.打开注册表编辑器(Win+R-输入“regedit”-回车)定位到: HKEY_CLASSES_ROOT\DesktopBackground\Shell
* L1 B1 }3 _* L r: w9 \2.右击 shell-新建-项,新建项命名为:Atmonitor
, R. _" n3 q+ e( S, M" y1 I
3. 在新建的“Atmonitor”项右侧新建三个字符串值:MUIVerb、icon、Position MUIVerb 中填入:关闭显示器(&M) Icon 中填入:imageres.dll,193 Position 中填入:Bottom 4 N) b6 e6 t$ C/ O9 s
4. 右击 Atmonitor -新建-项,新建项命名为:command ) N! f* D9 |' y- R- c H" I# [
5. 在新建的"command"项右侧(默认)中填入: / l3 X3 c% Z( t! F' k
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)" + S( ?3 d6 d* v r, q+ c
6. 重启计算机!桌面空白处右键会出现"关闭显示器"项。
8 ~ o; E0 K6 o
如何为 Win10 桌面右键菜单添加“关闭显示器”功能
5 `6 |& n) o* { U- M* K$ K( W
一键导入注册表(附删除):
桌面右键关闭显示器.rar
(866 Bytes, 下载次数: 0)
! q* `# V# T( q7 s0 y/ `
|