Classic Shell http://www.classicshell.net/forum/ |
|
Commands for invert selection and deselect http://www.classicshell.net/forum/viewtopic.php?f=8&t=777 |
Page 1 of 1 |
Author: | bamajon1974 [ Wed Jun 19, 2013 8:01 pm ] |
Post subject: | Commands for invert selection and deselect |
What are the registry shell command line codes for the invert selection and deselect commands that are added to classic shell explorer? I am trying to figure out how to make registry entries to add these features to directory and folder right click context menu of explorer. Any help would be appreciated. Thank you! |
Author: | Ivo [ Wed Jun 19, 2013 8:09 pm ] |
Post subject: | Re: Commands for invert selection and deselect |
The selection manipulation is not done through the registry. I am using the IFolderView interface: http://msdn.microsoft.com/en-us/library ... 16(v=vs.85).aspx |
Author: | bamajon1974 [ Wed Jun 19, 2013 8:34 pm ] |
Post subject: | Re: Commands for invert selection and deselect |
Ok I see. This looks like coding beyond my non-existent knowledge of writing software. I am guessing that using IFolder code, one could compile a script or dll file to regsvr and add these select all, invert select, and deselect to the context menu of explorer? |
Author: | Gaurav [ Wed Jun 19, 2013 9:40 pm ] |
Post subject: | Re: Commands for invert selection and deselect |
See if this helps: http://winaero.com/blog/how-to-add-any- ... windows-8/ and comment there if it's helpful. |
Author: | bamajon1974 [ Thu Jun 20, 2013 6:50 am ] |
Post subject: | Re: Commands for invert selection and deselect |
Yep, that tutorial on Winaero is the basis for this tutorial http://www.eightforums.com/tutorials/13 ... s-8-a.html for creating the cascading select menu. Problem is Windows 7 doesn't have windows.invertselection and windows.selectnone commands in the command store. Could they be exported from Win8 to Win7? I don't know as I don't have Win8. |
Author: | Gaurav [ Thu Jun 20, 2013 7:16 am ] |
Post subject: | Re: Commands for invert selection and deselect |
No they can't be added to the context menu on Windows 7 in that case. For 32-bit Windows 7, there is a shell extension with 'Select All' and 'Invert Selection' commands: http://crashcoursesoftware.com/download/ but it won't work with 64-bit Windows 7. |
Author: | bamajon1974 [ Thu Jun 20, 2013 7:39 am ] |
Post subject: | Re: Commands for invert selection and deselect |
I am running 64-bit windows so the crashcoursesoftware files as is won't work. So the invert selection is a menu item in explorer, but not a context menu. What is the command to get invert selection to run from the menu bar? Could it be modified for a right-click entry? Alternatively, the keyboard shortcut for invert select is Alt + E + I. Could that be incorporated into the registry to make a right click entry? |
Author: | bamajon1974 [ Fri Jun 21, 2013 2:58 pm ] |
Post subject: | Re: Commands for invert selection and deselect |
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! |
Page 1 of 1 | All times are UTC - 8 hours [ DST ] |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |