Windows 8 and 8.1 Forums


Cascading Needed on right context (?)

  1. #1


    Illinois
    Posts : 1
    Windows 8 Pro x64

    Cascading Needed on right context (?)


    Hi, Brink




    I've been following your tutorials for quite some time now and I enjoy them quite immensely they're very informative and help me out when I am desperately in need of a fix for my PC. I just went from Windows 7 Ultimate 64 bit to an upgrade of Windows 8 64 bit Pro. I have been a member of the sevens forums and now the eights forums for close to 4 or 5 months . I have tried to get in touch with you on numerous occasions but it told me I was not eligible or something like that, I did not understand for it was the first time that I had posted in the forum and I'm pretty new at posting I always stood on the sidelines to learn . Well to get to my question how do you create a cascading menu on the right context on desktop after you have created the registry key? Is there a tutorial that would show me how to create a cascading right context menu?
    Thank you sincerely
    Mossberg9500

      My System SpecsSystem Spec

  2. #2


    would any of these help until Brink replies?
    Windows 8 Forums - Search Results
      My System SpecsSystem Spec

  3. #3


    Posts : 835
    Win 8.1 Pro


    Hi,

    I will see if I can explain using a cascading menu for shutdown restart etc.
    This information I got from tutorials here and just playing around to get it the way I wanted it.

    I will post the full code at the very bottom of this post,
    Just copy and paste in notepad and save as Power.reg or something.reg and double click it.
    Then you can see how it looks in the right click menu.

    note, not everything can be done with Right Click Context menus, some things just don't work, others require taking ownership of registry keys etc.
    Be careful with what you are doing and trying to create, but don't be afraid to experiment.

    First off, here is the original Power Cascading Menu from tutorials and where I started, then edited in the code below to fix it the way I like it.

    Power - Add Cascading Desktop Context Menu in Windows 8


    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\DesktopBackground\Shell\zMenu1]
    "MUIVerb"="Power"
    "SubCommands"="shutdown;restart;lock;|;logoff;|;abort;switchuser;|;hybridshutdown;hibernate;sleep"
    "Icon"="powrprof.dll,-513"
    "Position"="Bottom"
    The above code is key to the whole thing. This defines how your cascading menu will look.
    I can't remember exactly why I named this part zMenu1, could be I just wanted it in the Registry in that location. Or there might have been a reason from a code aspect. Not sure, but I apologize, I don't want to go back and find out right now.

    "Icon"="powrprof.dll,-513"
    This is the icon used for the menu item.,.. all of the icons I chose are default in Windows files
    this is in that dll located in C:\Windows\System32
    this is icon number 513 in powrprof.dll

    Along with others
    imageres.dll
    shell32.dll

    compstui.dll
    DDORes.dll
    ieframe.dll
    mmcndmgr.dll
    mmres.dll
    moricons.dll
    msctf.dll
    netshell.dll
    pnidui.dll
    wmploc.DLL

    Just to name a few... hehe

    The best way to view these is use IconViewer
    Great app. Not all files contain icons,, to access this after install, right click a file and choose properties
    If there are icons, a new tab will appear, otherwise it won't.

    The | (pipe) adds separators in the menu

    This list of SubCommands above are the order they will appear in the menu.

    "Position"="Bottom"
    This is where is will be located in the context menu,
    Top
    Middle
    Bottom

    Position is a little tricky, You will need to research this and play around with it a bit.

    ,,,,,,,,,,,,,
    This code below is not really needed, I added it for a degree of completion,
    This adds the right click power menu to the Computer Icon as well (on the desktop or in the start menu, if you have one, this does not apply to metro anywhere).

    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Menu1]
    "MUIVerb"="Power"
    "SubCommands"="shutdown;restart;lock;|;logoff;|;abort;switchuser;|;hybridshutdown;hibernate;sleep"
    "Icon"="powrprof.dll,-513"
    "Position"="Bottom"
    ****************************************

    This is the full code for the registry file,

    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Menu1]
    "MUIVerb"="Power"
    "SubCommands"="shutdown;restart;lock;|;logoff;|;abort;switchuser;|;hybridshutdown;hibernate;sleep"
    "Icon"="powrprof.dll,-513"
    "Position"="Bottom"
    
    [HKEY_CLASSES_ROOT\DesktopBackground\Shell\zMenu1]
    "MUIVerb"="Power"
    "SubCommands"="shutdown;restart;lock;|;logoff;|;abort;switchuser;|;hybridshutdown;hibernate;sleep"
    "Icon"="powrprof.dll,-513"
    "Position"="Bottom"
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\shutdown]
    @="Shutdown"
    "icon"="shell32.dll,-28"
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\shutdown\command]
    @="shutdown.exe -s -t 00 -f"
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\restart]
    @="Restart"
    "icon"="SyncCenter.dll,-1220"
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\restart\command]
    @="shutdown.exe -r -t 00 -f"
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\lock]
    @="Lock Computer"
    "icon"="shell32.dll,-48"
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\lock\command]
    @="rundll32.exe user32.dll, LockWorkStation"
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\logoff]
    @="Log Off"
    "icon"="shell32.dll,-45"
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\logoff\command]
    @="shutdown.exe -L"
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\abort]
    @="Abort"
    "icon"="imageres.dll,-98"
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\abort\command]
    @="shutdown.exe -A"
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\switchuser]
    @="Switch User"
    "icon"="imageres.dll,-88"
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\switchuser\command]
    @="tsdiscon.exe"
    
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\sleep]
    @="Sleep"
    "Icon"="powercpl.dll,-514"
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\sleep\command]
    @="rundll32.exe powrprof.dll,SetSuspendState Sleep"
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\hibernate]
    @="Hibernate"
    "icon"="imageres.dll,-1013"
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\hibernate\command]
    @="Shutdown -h"
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\hybridshutdown]
    @="Shut Down (Hybrid)"
    "icon"="imageres.dll,-1022"
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\hybridshutdown\command]
    @="Shutdown -s -f -t 00 -hybrid"
    ****************************
    This will uninstall it....

    Code:
    Windows Registry Editor Version 5.00
    
    [-HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Menu1]
    
    [-HKEY_CLASSES_ROOT\DesktopBackground\Shell\zMenu1]
    
    [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\shutdown]
    
    [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\restart]
    
    [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\lock]
    
    [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\logoff]
    
    [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\abort]
    
    [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\switchuser]
    
    [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\sleep]
    
    [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\hibernate]
    
    [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\hybridshutdown]
    I hope this helps a little with explaining how to create a cascading right click context menu.

    Also see this one,, but this one requires taking ownership of a registry key
    Personalize - Add or Remove Expanding Desktop Context Menu

    And this... Context Menus
    Last edited by Tepid; 26 Mar 2013 at 00:56.
      My System SpecsSystem Spec

Cascading Needed on right context (?)
Related Threads
How to Add a "Power" Cascading Desktop Context Menu in Windows 8 and 8.1 This will show you how to add or remove a cascading (expandable) Power menu to the desktop context menu for all users to quickly Lock, Switch user, Sign out (log off), Sleep, Hibernate, Hybrid Shut down, Full Shut down,...
Hi there Metro apps CAN be pinned to the desktop or added to a cascading menu via a custom toolbar so it's only a question of finding out what the executable is. You can mix these with standard apps too. This method works and DOESN'T NEED any 3rd party apps or Registry hacks !!!!! ...
Hello Brink, Instead of having shortcuts on my desktop, could I use a similar trick to add a "shortcut" Cascading Desktop Context Menu in Windows 8.1, under of which I can have all my shortcuts to applications or files? I have a file named registry.vbs with which I open directly a key in the...
It's no secret that you can create a toolbar, opening from the Taskbar, for any folder you want. Such a toolbar for the Start Menu folder is a pretty good approximation of the classic Start Menu. The trouble is, there are two different Start Menu folders (your User SM and the All-Users SM), with...
How to Add a "Windows Defender" Cascading Desktop Context Menu in Windows 8 and 8.1 This tutorial will show you how to add or remove a cascading (expandable) Windows Defender menu to the desktop context menu for all users in Windows 8 and 8.1 to be able to quickly open Windows Defender to...
Hi there For people playing around and wanting cascading (i.e sub menus) menus to items they've customized such as their own toolbar or programs added with WIN+X menu editor then this link helps. It's an oldie from Windows 7 but it still works on Windows 8/ 8.1 --- -- Like all things...
How to Add a "MMC Snap-ins" Cascading Desktop Context Menu in Windows 8 This tutorial will show you how to add or remove a cascading (expandable) MMC snap-ins menu to the desktop context menu for all users in Windows 8. You must be signed in as an administrator to be able to add or remove the...
Eight Forums Android App Eight Forums IOS App Follow us on Facebook