NOTE: This tutorial has been featured by Microsoft. AskVG.com was the first website posting this unique trick.
We have posted several tutorials in past which help in adding your favorite programs shortcuts and other useful system shortcuts in Windows 7 Desktop context menu. Some of them are as follows:
I liked the idea and I tried to create cascading menus containing programs shortcuts which also helps in grouping the programs. For example, you can create different cascading menus like Applications, Browsers, Media Players, System Shortcuts and when you hover your mouse cursor over them, they open a list containing all your favorite programs. In this way, it'll not make the main context menu large as shown in following screenshots:
So today in this tutorial, you'll learn how to create cascading menus in Windows 7 Desktop and My Computer context menus.
This tutorial has been divided in 2 parts:
2. Now go to following key:
4. Now select this newly created key "Menu1" and in right-side pane, we'll need to create following 4 String values:
MUIVerb contains the name of cascading menu which will be displayed in the context menu. You can set its value to any desired name like Apps, Browsers, etc. Feel free to set any name.
SubCommands contains list of commands separated by semi-colon (;) which you want to show under cascading menu. You can't add any program shortcut directly. First you'll need to give any desired command name in this list and after that you'll need to register it using PART 2 so that it can start working.
5. If you are confused about "SubCommands" String value, this point will clear all your doubts.
Suppose you have created a cascading menu "Apps" using Step 3 and now you want to add Notepad and Calculator shortcuts under it. In this case, you'll need to set following as "SubCommands" value:
6. Icon String value can be used to show an icon for your cascading menu. In our example, we have set its value to explorer.exe that's why its showing Windows Explorer icon for the "Apps" cascading menu.
7. Position String value can be used to define the position of cascading menu in the context menu. By default the cascading menu is shown in the middle but you can set its position at Top or Bottom with the help of "Position" String value.
8. You can create more than one cascading menus using Step 3 and 4.
1. Go to following key:
In our example, we used 2 commands notepad and calc, so we'll need to create 2 keys under "CommandStore\Shell" key with the same names notepad and calc.
3. Once you create the key, select it and in right-side pane set value of "(Default)" to the name which you want to show in cascading menu. For example set its value to Notepad or Calculator or any other desired string.
4. If you also want to show an icon for it, create a new String value with the name icon and set its value to program's EXE file path or any other desired icon. For example, to show Notepad icon for Notepad shortcut, you can set value of Icon to notepad.exe
5. Now final step! Create a new key under the recently created keys, e.g. notepad or calc and give it name command.
Click on it and in right-side pane, set value of "(Default)" to the path of your desired program's EXE file. For example, if you want to open Notepad when you click on "Notepad" entry in cascading menu, set value of "Command" to notepad.exe
PS: Notepad is a Windows application, so you can omit the full path but if you want to execute any 3rd party program, you should give full path of its EXE file.
That's it. Now you'll see your desired cascading menus containing your favorite programs shortcuts in Desktop or My Computer context menus.
For Desktop context menu:
We have posted several tutorials in past which help in adding your favorite programs shortcuts and other useful system shortcuts in Windows 7 Desktop context menu. Some of them are as follows:
- How to Add Your Name in Windows 7 Desktop Context Menu
- How to Add Program Shortcuts and Other Useful Shortcuts in Windows 7 Desktop Context Menu?
- Hacking “Screen Resolution”, “Gadgets” and “Personalize” Options in Windows 7 Desktop Context Menu
I liked the idea and I tried to create cascading menus containing programs shortcuts which also helps in grouping the programs. For example, you can create different cascading menus like Applications, Browsers, Media Players, System Shortcuts and when you hover your mouse cursor over them, they open a list containing all your favorite programs. In this way, it'll not make the main context menu large as shown in following screenshots:
So today in this tutorial, you'll learn how to create cascading menus in Windows 7 Desktop and My Computer context menus.
This tutorial has been divided in 2 parts:
- Creating cascading menus and adding programs shortcuts
- Adding functionality to the shortcuts by registering them
1. Type regedit in RUN or Startmenu Search box and press Enter. It'll open Registry Editor.PART 1: Creating cascading menus and adding programs shortcuts
2. Now go to following key:
HKEY_CLASSES_ROOT\DesktopBackground\ShellPS: If you want to add the cascading menu in My Computer context menu instead of Desktop context menu, then go to following key instead of the above mentioned key:
HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell3. Now we'll need to create a new key under "Shell" key. Right-click on "Shell" key and select "New -> Key". Give the new key any desired name e.g. "Menu1" (without quotes).
4. Now select this newly created key "Menu1" and in right-side pane, we'll need to create following 4 String values:
- MUIVerb
- SubCommands
- Icon
- Position
MUIVerb contains the name of cascading menu which will be displayed in the context menu. You can set its value to any desired name like Apps, Browsers, etc. Feel free to set any name.
SubCommands contains list of commands separated by semi-colon (;) which you want to show under cascading menu. You can't add any program shortcut directly. First you'll need to give any desired command name in this list and after that you'll need to register it using PART 2 so that it can start working.
5. If you are confused about "SubCommands" String value, this point will clear all your doubts.
Suppose you have created a cascading menu "Apps" using Step 3 and now you want to add Notepad and Calculator shortcuts under it. In this case, you'll need to set following as "SubCommands" value:
notepad;calcAbove value can be changed according to your requirement. You can use np;ca instead of notepad;calc. But you'll have to use the same name while registering those commands using PART 2.
6. Icon String value can be used to show an icon for your cascading menu. In our example, we have set its value to explorer.exe that's why its showing Windows Explorer icon for the "Apps" cascading menu.
7. Position String value can be used to define the position of cascading menu in the context menu. By default the cascading menu is shown in the middle but you can set its position at Top or Bottom with the help of "Position" String value.
8. You can create more than one cascading menus using Step 3 and 4.
Once you have added the program shortcuts to cascading menus, you'll need to register the commands mentioned in "SubCommands" String value using following method:PART 2: Adding functionality to the shortcuts by registering them
1. Go to following key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\Shell2. Under this key, we'll need to create new keys for each command mentioned in "SubCommands" String value.
In our example, we used 2 commands notepad and calc, so we'll need to create 2 keys under "CommandStore\Shell" key with the same names notepad and calc.
3. Once you create the key, select it and in right-side pane set value of "(Default)" to the name which you want to show in cascading menu. For example set its value to Notepad or Calculator or any other desired string.
4. If you also want to show an icon for it, create a new String value with the name icon and set its value to program's EXE file path or any other desired icon. For example, to show Notepad icon for Notepad shortcut, you can set value of Icon to notepad.exe
5. Now final step! Create a new key under the recently created keys, e.g. notepad or calc and give it name command.
Click on it and in right-side pane, set value of "(Default)" to the path of your desired program's EXE file. For example, if you want to open Notepad when you click on "Notepad" entry in cascading menu, set value of "Command" to notepad.exe
PS: Notepad is a Windows application, so you can omit the full path but if you want to execute any 3rd party program, you should give full path of its EXE file.
That's it. Now you'll see your desired cascading menus containing your favorite programs shortcuts in Desktop or My Computer context menus.
If you are still confused or afraid in following the above method, you can copy following code, paste in Notepad and save it with the name "cascade.reg" (including quotes). Run the saved file and it'll add Notepad and Calculator in a cascading menu "Apps" in Desktop or My Computer context menus:BONUS: Ready-Made Registry Script
For Desktop context menu:
Windows Registry Editor Version 5.00For My Computer context menu:
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Menu1]
"MUIVerb"="Apps"
"SubCommands"="notepad;calc"
"icon"="explorer.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\notepad]
@="Notepad"
"icon"="notepad.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\notepad\command]
@="notepad.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\calc]
@="Calculator"
"icon"="calc.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\calc\command]
@="calc.exe"
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Menu1]
"MUIVerb"="Apps"
"SubCommands"="notepad;calc"
"icon"="explorer.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\notepad]
@="Notepad"
"icon"="notepad.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\notepad\command]
@="notepad.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\calc]
@="Calculator"
"icon"="calc.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\calc\command]
@="calc.exe"
0 comments:
Post a Comment