问题描述
我发现 CommandFlags = dword:00000040会在条目下方添加一个分隔符,尽管只是在子菜单中(在 subcommands =字符串下)。示例。
I have found that "CommandFlags"=dword:00000040 will add a separator below an entry, though only to a submenu (under the "subcommands"="" string). Example here.
是否可以在主上下文中添加分隔符菜单?
Is there a way to add a separator in the main context menu?
我正在使用的示例:
[HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\Delete With Rimraf]
@="Delete With Rimraf"
"CommandFlags"=dword:00000040
这没有分隔符。
推荐答案
此示例在前后都有分隔符此项,该条目适用于VirusTotal Uploader
This example feature a separator after and before the item, this entry is for 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加载的其他应用程序,无法在注册表上添加分隔符,注入的dll添加/删除分隔符本身,然后需要更改dll代码并重新编译以实现您的目标想要这里是一个记事本++
For other applications loaded over shellex it's not possible to add separator over registry, the injected dll add/remove separator itself, you need then to change the dll code and recompile it to achieve what you want here is an example with notepad++ https://github.com/notepad-plus-plus/notepad-plus-plus/pull/3092/commits
InsertMenu(hMenu, nIndex, MF_STRING | MF_BYPOSITION, idCmd++, m_szMenuTitle);
这篇关于在Windows资源管理器上下文菜单中添加分隔符(不在子菜单中)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!