It is currently Thu Sep 19, 2019 6:19 pm

All times are UTC - 8 hours [ DST ]


Forum rules


Please, keep discussions on topic and in the right forum. The start menu topics go into the Classic Start Menu forum, etc. This makes it easier for people to locate topics they are looking for.
If you get a satisfactory response to your question, please mark the topic as "solved". Click the green √ button in the bottom-right of the post.



Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: Wed Jun 19, 2013 8:01 pm 
Offline

Joined: Wed Jun 19, 2013 7:56 pm
Posts: 5
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!


Top
 Profile  
Reply with quote  
PostPosted: Wed Jun 19, 2013 8:09 pm 
Offline
Site Admin
User avatar

Joined: Wed Jan 02, 2013 11:38 pm
Posts: 5333
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


Top
 Profile  
Reply with quote  
PostPosted: Wed Jun 19, 2013 8:34 pm 
Offline

Joined: Wed Jun 19, 2013 7:56 pm
Posts: 5
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?


Top
 Profile  
Reply with quote  
PostPosted: Wed Jun 19, 2013 9:40 pm 
Offline
User avatar

Joined: Thu Jan 03, 2013 12:38 am
Posts: 5352
See if this helps: http://winaero.com/blog/how-to-add-any- ... windows-8/ and comment there if it's helpful.

_________________
Links to some general topics:

Compare Start Menus

Read the Search box usage guide.

I am a Windows enthusiast and helped a little with Classic Shell's testing and usability/UX feedback.


Top
 Profile  
Reply with quote  
PostPosted: Thu Jun 20, 2013 6:50 am 
Offline

Joined: Wed Jun 19, 2013 7:56 pm
Posts: 5
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.


Top
 Profile  
Reply with quote  
PostPosted: Thu Jun 20, 2013 7:16 am 
Offline
User avatar

Joined: Thu Jan 03, 2013 12:38 am
Posts: 5352
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.

_________________
Links to some general topics:

Compare Start Menus

Read the Search box usage guide.

I am a Windows enthusiast and helped a little with Classic Shell's testing and usability/UX feedback.


Top
 Profile  
Reply with quote  
PostPosted: Thu Jun 20, 2013 7:39 am 
Offline

Joined: Wed Jun 19, 2013 7:56 pm
Posts: 5
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?


Top
 Profile  
Reply with quote  
PostPosted: Fri Jun 21, 2013 2:58 pm 
Offline

Joined: Wed Jun 19, 2013 7:56 pm
Posts: 5
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!


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group, Almsamim WYSIWYG Classic Shell © 2010-2016, Ivo Beltchev.
All right reserved.