Sub-context menus for my custom context menus?


  1. Posts : 72
    Windows 7 build 7600 64 bit
       #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
      My Computer


  2. Posts : 6,305
    Windows 7 Ultimate x64
       #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 Computer


  3. Posts : 72
    Windows 7 build 7600 64 bit
    Thread Starter
       #3

    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 Computer


  4. Posts : 6
    Windows 7 Ultimate
       #4

    I would also be interested in this...
      My Computer


  5. Posts : 2
    Win7 x86
       #5

    Win7 Context Submenu


    I posted a submenu of System Tools Win7 Context SubMenu

    Last edited by Brink; 16 May 2011 at 12:36. Reason: embedded image
      My Computer


  6. Posts : 71,976
    64-bit Windows 11 Pro for Workstations
       #6

    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 Computer


 

  Related Discussions
Our Sites
Site Links
About 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 08:43.
Find Us