Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] it is possible to move path copy menu to top? #186

Open
iamqiz opened this issue Dec 26, 2024 · 3 comments
Open

[FEATURE] it is possible to move path copy menu to top? #186

iamqiz opened this issue Dec 26, 2024 · 3 comments
Assignees

Comments

@iamqiz
Copy link

iamqiz commented Dec 26, 2024

a shell/xxx context menu can be moved to top by adding position=top attribute,
it is possible to move shellex\ContextMenuHandlers\PathCopyCopy to top ?
thanks!

@clechasseur clechasseur self-assigned this Dec 26, 2024
@clechasseur
Copy link
Owner

I've found some documentation on how to do this for Shell verbs, but not for contextual menu extensions implemented through IContextMenu. Can you point me to documentation for this use case? Also, it seems that even the support for Shell verbs is somewhat unreliable, because if more than one verb uses the property, the last one wins.

@iamqiz
Copy link
Author

iamqiz commented Dec 26, 2024

use case: I have many context menu for some file ext, so that the 'path copy' will be placed at bottom of menu, then i need to scroll my mouse whell to click it,😅 . if it is at the top,no need to scroll mouse.

if more than one verb uses the property, the last one wins.

yes, in that case , i will rename the verb to make it be last one , or add it into a cascading menu, ref: Creating Cascading Menus with the SubCommands Registry Entry

I'm not familiar with menu extensions , but I think it is possible to move shellex\ContextMenuHandlers\xx to top, for example, the reg file below can create a rename menu at top,

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\Windows.rename]
@="rename-top"
"InvokeCommandOnSelection"=dword:00000001
"position"="top"

it use predefined verb Windows.rename that is defined at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Windows.rename,
and this verb use command from dll ( HKEY_CLASSES_ROOT\CLSID\{81007291-f070-4c4f-b978-ad1bec84babc} ) ,
in link above, it say :

In the case of custom verbs, implement them using any of the static verb implementation methods and list them under the CommandStore subkey

so maybe we can create custom verb under CommandStore ,let that verb call command from dll,finally we add that verb to shell\ ?🧐

@clechasseur
Copy link
Owner

Moving Path Copy Copy to using the new way(s) of adding contextual menu items added in Windows 7 would be a very good idea, but it's a pretty hefty refactoring. I'll leave this open to track this request if we get to that point in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants