Ok I believe I found a solution but need a little help to finish it off.
So basically I need to know what the keyboard shortcuts for Invert Selection and Select None are and how would you correctly code them in a vbscript file.
I figured out how to add a "Select" parent menu with Select All, Invert Select, and Select None operations based on right click menu based on cascading context menu tutorials from AskVG.
http://www.askvg.com/add-cascading-menu ... text-menu/In registry editor, I added a "Select" menu in
[HKEY_CLASSES_ROOT\*\shell\]
[HKEY_CLASSES_ROOT\Folder\shell\]
[HKEY_CLASSES_ROOT\Directory\Background\shell\]
[HKEY_CLASSES_ROOT\LibraryFolder\background\shell\]
For example, in
[HKEY_CLASSES_ROOT\LibraryFolder\background\shell\]
I added a new key called Menu.
I added MUIVerb string called "Select"
I added Subcommands called "Windows.selectall;SelectInvert;SelectNone
I also added Icon and Position strings but left them blank.
I did the same thing for *, folder, and library, in addition to desktop background.
Then I went to
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\Shell
Windows.selectall functionality is already there and the operation works as is. Invert select and select none is not. So i have to add it some way.
So I found this tutorial to add selectall and invert selection on door2windows using vbscripts based on keyboard shortcuts.
http://www.door2windows.com/how-to-sele ... text-menu/Select all is control + a
Invert select is Alt + E + I
Select none is ???? -- I don't know here, I have seen Shift + A but I don't think it works. Can someone help?
Write a vbscript for invert selection:
set oShell = WScript.CreateObject("WScript.Shell")
oShell.SendKeys "%ei"
Open notepad, save the script as "InvertSelect.vbs" in windows directory.
Write a vbscript for select none:
set oShell = WScript.CreateObject("WScript.Shell")
oShell.SendKeys "+a"
Open notepad, save the script as "SelectNone.vbs" in windows directory.
In ....\CommandStore\Shell, I made "selectinvert" key and "selectnone" key
For selectinvert, the Default string, the value is "Invert Selection"
I added an icon string with a path to an appropriate invert selection icon.
In the selectinvert key, i made a new sub-key and called it "command"
and set the value to the path where I saved InvertSelect.vbs file.
For selectnone, the Default string, the value is "Select None"
I added an icon string with a path to an appropriate select none icon.
In the selectnone key, i made a new sub-key and called it "command"
and set the value to the path where I saved SelectNone.vbs file.
Now I have the cascading Select menu with Select All, Invert Selection, and Select None, all with Icons. Select All works, but the other two don't because I don't think I have the right format for keyboard shortcuts. This should be a simple fix. Can someone help?
Or if there is a better solution, I am all ears.
Thanks!