gpt4 book ai didi

windows - 在 Windows 资源管理器上下文菜单中添加分隔符(不在子菜单中)

转载 作者:可可西里 更新时间:2023-11-01 14:02:27 25 4
gpt4 key购买 nike

我发现 "CommandFlags"=dword:00000040 会在条目下方添加一个分隔符,尽管只是在子菜单中(在 "subcommands"=""字符串下方)。示例 here .

有没有办法在主上下文菜单中添加分隔符?

我正在使用的示例:

[HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\Delete With Rimraf]
@="Delete With Rimraf"
"CommandFlags"=dword:00000040

这没有分隔符。

最佳答案

此示例在项目前后都有一个分隔符,此条目用于 VirusTotal Uploader

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\vtuploader]
@="Send to VirusTotal"
"Icon"="C:\\Program Files\\VirusTotalUploader2\\VirusTotalUploader2.2.exe,0"
"SeparatorBefore"=""
"SeparatorAfter"=""

对于通过 shellex 加载的其他应用程序,不可能通过注册表添加分隔符,注入(inject)的 dll 添加/删除分隔符本身,然后您需要更改 dll 代码并重新编译它以实现您想要的这里是 Notepad++ 的示例 https://github.com/notepad-plus-plus/notepad-plus-plus/pull/3092/commits

InsertMenu(hMenu, nIndex, MF_STRING | MF_BYPOSITION, idCmd++, m_szMenuTitle);

关于windows - 在 Windows 资源管理器上下文菜单中添加分隔符(不在子菜单中),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39806367/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com