Windows 7 Forums


Windows 7: Sub-context menus for my custom context menus?

22 Oct 2009   #1

Windows 7 build 7600 64 bit
 
 
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

My System SpecsSystem Spec

22 Oct 2009   #2

Windows 7 Ultimate x64
Milton Keynes, United Kingdom
 
 

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
My System SpecsSystem Spec
22 Oct 2009   #3

Windows 7 build 7600 64 bit
 
 

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\""
My System SpecsSystem Spec
.


25 Mar 2010   #4

Windows 7 Ultimate
 
 

I would also be interested in this...
My System SpecsSystem Spec
16 May 2011   #5

Win7 x86
 
 
Win7 Context Submenu

I posted a submenu of System Tools Windows 7 Context SubMenu


Last edited by Brink; 16 May 2011 at 12:36 PM.. Reason: embedded image
My System SpecsSystem Spec
16 May 2011   #6

64-bit Windows 7 Ultimate SP1 & Windows 8 Enterprise
Texas
 
 

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
My System SpecsSystem Spec
Reply

 Sub-context menus for my custom context menus? problems?



Thread Tools



Similar help and support threads for: Sub-context menus for my custom context menus?
Thread Forum
Customizing Context Menus Customization
Please help with cascading context menus General Discussion
Remove from Context Menus Customization
Borked up context menus. General Discussion
Right Click Context Menus Customization


All times are GMT -5. The time now is 01:46 AM.


Seven Forums Android App Seven Forums IOS App Follow us on Facebook

Windows 7 Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows 7" and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32