Apples_mmmmmmmm
Member
- Local time
- 2:05 PM
- Posts
- 3
- OS
- Windows 11 23h2 (OS Build 22631.4460)
I've been editing some of the Context Menu items to get things looking closer to the way I'd like.
In that process I've been attempting to put certain things into submenus/cascading flyouts.
For example, I'd like to have a menu option called "Pin To" that contains the pertinent commands "Pin To Start", "Pin to Home" and "Pin To Taskbar" as subcommands.
I've been able to get the option to appear just fine, but I can't seem to get the functionality to work, and to be honest, I'm not actually sure whether this is possible through regedits or not. In fact, the ways I've seen people add or remove "Pin to Taskbar" to the context menu don't seem to have anything to do with the actual command of adding something to the taskbar, so that may not be possible to add as a submenu at all. Regardless, I'd appreciate if anyone would be willing to elaborate on this process.
Below are some of the variations I've tried, specifically for the context menu that manages pinning folders:
[HKEY_CLASSES_ROOT\Folder\shell\PinTo]
"MUIVerb"="Pin To"
"SubCommands"="Windows.pintostartscreen;Windows.PinToHome"
as well as trying custom verb implementations:
[HKEY_CLASSES_ROOT\Folder\shell\PinTo]
"MUIVerb"="Pin To"
"SubCommands"="Windows.pintostartscreen;Windows.PinToHome"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Custom.PinToStart]
"MUIVerb"="Start"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Custom.PinToStart\command]
(default)="{470C0EBD-5D73-4d58-9CED-E91E22E23282}"
the above command key at least shows that the command is doing something, as it asks what I'd like to use to open a file when I call the function on an .exe. But, opening the file isn't my goal, so it's still a bust.
as well as several variations on the contents of the default field in command
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Custom.PinToStart\command]
(default)="{::470C0EBD-5D73-4d58-9CED-E91E22E23282}"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Custom.PinToStart\command]
(default)="shell:::{470C0EBD-5D73-4d58-9CED-E91E22E23282}"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Custom.PinToStart\command]
(default)="explorer.exe shell:::{470C0EBD-5D73-4d58-9CED-E91E22E23282}"
I've also tried putting PinTo into shellex/ContextMenuHandlers instead of shell, but that only resulted in a regression since nothing even shows up on the menu.
In that process I've been attempting to put certain things into submenus/cascading flyouts.
For example, I'd like to have a menu option called "Pin To" that contains the pertinent commands "Pin To Start", "Pin to Home" and "Pin To Taskbar" as subcommands.
I've been able to get the option to appear just fine, but I can't seem to get the functionality to work, and to be honest, I'm not actually sure whether this is possible through regedits or not. In fact, the ways I've seen people add or remove "Pin to Taskbar" to the context menu don't seem to have anything to do with the actual command of adding something to the taskbar, so that may not be possible to add as a submenu at all. Regardless, I'd appreciate if anyone would be willing to elaborate on this process.
Below are some of the variations I've tried, specifically for the context menu that manages pinning folders:
[HKEY_CLASSES_ROOT\Folder\shell\PinTo]
"MUIVerb"="Pin To"
"SubCommands"="Windows.pintostartscreen;Windows.PinToHome"
as well as trying custom verb implementations:
[HKEY_CLASSES_ROOT\Folder\shell\PinTo]
"MUIVerb"="Pin To"
"SubCommands"="Windows.pintostartscreen;Windows.PinToHome"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Custom.PinToStart]
"MUIVerb"="Start"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Custom.PinToStart\command]
(default)="{470C0EBD-5D73-4d58-9CED-E91E22E23282}"
the above command key at least shows that the command is doing something, as it asks what I'd like to use to open a file when I call the function on an .exe. But, opening the file isn't my goal, so it's still a bust.
as well as several variations on the contents of the default field in command
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Custom.PinToStart\command]
(default)="{::470C0EBD-5D73-4d58-9CED-E91E22E23282}"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Custom.PinToStart\command]
(default)="shell:::{470C0EBD-5D73-4d58-9CED-E91E22E23282}"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Custom.PinToStart\command]
(default)="explorer.exe shell:::{470C0EBD-5D73-4d58-9CED-E91E22E23282}"
I've also tried putting PinTo into shellex/ContextMenuHandlers instead of shell, but that only resulted in a regression since nothing even shows up on the menu.
- Windows Build/Version
- Version 23H2 (OS Build 22631.4460)
My Computer
System One
-
- OS
- Windows 11 23h2 (OS Build 22631.4460)
- Computer type
- PC/Desktop
- CPU
- 12th Gen Intel(R) Core(TM) i5-12600k
- Motherboard
- Gigabyte Z690 UD AX DDR4 ATX LGA1700 Motherboard
- Memory
- 64GB DDR4-3200
- Graphics Card(s)
- RTX 4090
- Antivirus
- Windows Defender