New
#1
Sub-context menus for my custom context menus?
Anybody know if i can create a sub-context menu for all my custom context menu's ?, and how its done
Anybody know if i can create a sub-context menu for all my custom context menu's ?, and how its done
Hi Hakon,
You would need to locate the Context menu that has been added in the registry;
for example
HKEY_CLASSES_ROOT/*/shellex/ContextMenuHandlers/CustomMenu
you would then add a new Key within that which would then produce what you are after.
If you give some details of what exactly you're after, including programs to run, I may be able to create a registry key for you
OS
Thanks! i would appreciate a preview :)
If i wanted to put these 3 context menus into a single submenu:
Code:[HKEY_CLASSES_ROOT\*\shell\takeownership] @="Take Ownership" "HasLUAShield"="" "NoWorkingDirectory"="" [HKEY_CLASSES_ROOT\*\shell\takeownership\command] @="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F" "IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"Code:Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\*\shell\Delete on reboot] @="" "HasLUAShield"="" [HKEY_CLASSES_ROOT\*\shell\Delete on reboot\command] @="CMD /E:OFF /C REG ADD HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\Currentversion\\RunOnce /v \"Del %1 OnNextReboot\" /d ^\"cmd.exe /c DEL /F /Q \\\"%1\\\"\" /f\""Code:Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\exefile\shell\run in cmd] @="Run in Command Prompt" "HasLUAShield"="" [HKEY_CLASSES_ROOT\exefile\shell\run in cmd\command] @="cmd /k \"%1\""
I would also be interested in this...
I posted a submenu of System Tools Win7 Context SubMenu
Last edited by Brink; 16 May 2011 at 12:36. Reason: embedded image
These two tutorials below may be able to help show you how to. You can right click on the REG file and click on EDIT to see the entries made to the registry to help see how.
System Tools - Cascading Desktop Context Menu
and
Administrative Tools - Cascading Desktop Context Menu
Hope this helps,
Shawn