Cascading Needed on right context (?)

Mossberg9500

New Member
Messages
1
Location
Illinois
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 Computer

System One

  • OS
    Windows 8 Pro x64
    Computer type
    Laptop
    System Manufacturer/Model
    Gateway
    CPU
    Intel64 Family 6 Model 42 Stepping 7, GenuineIntel
    Memory
    6.00 GB
    Graphics Card(s)
    Intel HD Graphics
    Browser
    Google Chrome , Firefox , Internet Explorer10
    Antivirus
    Windows 8 Essential , Apps
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.

http://www.eightforums.com/tutorial...-menu-windows-8-a.html?filter[1]=Context Menu


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 :p

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
http://www.eightforums.com/tutorials/9477-personalize-add-remove-expanding-desktop-context-menu.html

And this... Context Menus
 
Last edited:

My Computer

System One

  • OS
    Win 8.1 Pro
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Self Built
    CPU
    I7-3770K
    Motherboard
    ASUS SABERTOOTH Z77
    Memory
    CORSAIR 8GB 2X4 D3 1866
    Graphics Card(s)
    EVGA GTX680 4GB
    Monitor(s) Displays
    ASUS 24" LED VG248QE
    Hard Drives
    SAMSUNG E 256GB SSD 840 PRO -
    SAMSUNG E 120GB SSD840 -
    SEAGATE 1TB PIPELINE
    PSU
    CORSAIR GS800
    Case
    CORSAIR 600T
    Cooling
    CORSAIR HYDRO H100I LIQUID COOLER
    Keyboard
    THERMALTA CHALLENGER ULT GAME-KYBRD
    Mouse
    RAZER DEATHADDER GAME MS BLK-ED
    Antivirus
    Windows Defender
    Other Info
    APC 1000VA -
    LGELECOEM LG 14X SATA BD BURNER -
    CORSAIR SP120 Fans x 3 -
    NZXT 5.25 USB3 BAY CARD READER -
    HAUPPAUGE COLOSSUS
Back
Top