Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


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

 
 

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

My System SpecsSystem Spec
16 May 2011   #6
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

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?




Thread Tools



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

Our Sites

Site Links

About Us

Find Us

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

All times are GMT -5. The time now is 01:28 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

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 33