Can you specify location of "file type groups" context menus

I know this may be knit-picking a little, but thought I would ask the question anyway.

Im trying to get my Context Menus sorted once and for all, as they have been a long standing TODO, as they are not the easiest of things to fully understand / implement.

I have got them working quite well, but am just trying to fine tune them a little. I have selected the "Hide windows items on file context menu (shift overrides)" from preferences, and have put all the windows context menu items in a seperate sub-menu for the time being, with the command Filetype CONTEXTMENU CONTEXTOPTIONS=windowsonly (although I can not see the windowsonly option documented, its something I picked up from these forums)

Say for arguments sake, I have the following context menu structure

New
Rename

Cut
Copy

Delete

Now, say I want to put the WinRAR "Extract Here" function after the "Rename" menu item, I have managed to achieve that with the following command ;
FileType CONTEXTFORCE CONTEXTMENU={B41DB860-8EE4-11D2-9906-E49FADC173CA} VERB=WinRAR_ExtractHere

(Although I get "Extract Here" and "Extract to {filename}" (these are the only two options I have selected in WinRAR Context Menu configuation), I would of expected just to have the "Extract Here" as specified by the verb "WinRAR_ExtractHere") VERB was obtained by the command "contextmenu showcmds"

This got me on to thinking that it would be nice if I could define exactly where I want context menu's defined by file type groups to be placed.

Say for example I have a file type group "Pictures", and context menu items defined as "Convert to JPEG" and "Convert to PNG", whenever I click on a file (say .jpg) that falls into the file type group definition, the context menus for this file type are placed at the top of my current context menus. e.g. I would end up with the following ;

Convert to JPEG
Convert to PNG

New
Rename

Cut
Copy

Delete

It would be nice if there was a command like FileType ContextForce ContextMenuFileType="Pictures", so that I could specify where in the context menu I want the items from File Type Groups context menus to be placed.

Is there any possibility to achieve this ?

Again, MANY thanks for any help.

By content menus are you talking about the system content menu or one that you have configured using Windows menus. Recently I had the same question and the response that I got from Leo was create a menu that's on the Opus toolbar. I found it to solve my problem and open up more possibilities. My concern was when I would use the ContentMenu - new which would open up a host of possibilities added by different installations.

As far as WinRaR I believe there's most likely different commands that will respond differently and that most likely is controlled by WinRar.

I have a special interest in this topic. It will be interesting to see the solutions that you come up with.

Bob

There are two reasons reason you're getting everything you've got WinRAR to show on it's context menu instead of just "WinRAR_ExtractHere" like you expected... first is, you're using the "FileType CONTEXTFORCE CONTEXTMENU=" and specifying WinRAR's shell extension CLSID, which shows everything (not specific commands). So THAT is what's generating both WinRAR commands. Secondly, you're using the VERB option to specify the "WinRAR_ExtractHere" command - but as far as I know that's a "ContextMenu" command option. The "ContextMenu" command is a different command with different options than the "FileType CONTEXTMENU" command. Maybe you want to try "ContextMenu VERB=WinRAR_ExtractHere"...

But you'd still be placing THAT command under some item categorized under the Opus FileType editor... which is the thing for which you're asking to control the order of. So specifically using a "command" like you're suggesting is chicken and egg-ish and wouldn't work. I think Opus "for the most part" generates it's context menu based on showing items from top to bottom that match the filetype clicked on from most to least specific. FileType specific stuff, followed by FileType Group stuff, followed by either the 'All files' or 'All folders' stuff, and lastly the 'All files and folders' stuff...

I think there's still reasons why people might want to be able to control that order... but at least in your specific example... isn't that more or less what you are in fact getting now (i.e. the Pictures FileType Group stuff listed above the Rename, Cut, Copy, Delete stuff...)?

Thanks for the replies guys.

It's been a week or four since ive done anything with this (had other things to do), so i'll just try and give a quick reply.

[quote]But you'd still be placing THAT command under some item categorized under the Opus FileType editor... which is the thing for which you're asking to control the order of. So specifically using a "command" like you're suggesting is chicken and egg-ish and wouldn't work. I think Opus "for the most part" generates it's context menu based on showing items from top to bottom that match the filetype clicked on from most to least specific. FileType specific stuff, followed by FileType Group stuff, followed by either the 'All files' or 'All folders' stuff, and lastly the 'All files and folders' stuff...

I think there's still reasons why people might want to be able to control that order... but at least in your specific example... isn't that more or less what you are in fact getting now (i.e. the Pictures FileType Group stuff listed above the Rename, Cut, Copy, Delete stuff...)?[/quote]

The reasoning for me wanting to have a little more control over file type group context menu's is two fold, 1) So my file type group items are always at the top of my right-click context menu, and 2) So I can integrate some control of file type context menu into my sidebar control, i'll explain a little...

  1. So my file type group items are always at the top of my right-click context menu

I would like my context menus to take the form of something like
{filetype group context menus}

All other Context Items > {Filetype CONTEXTMENU CONTEXTOPTIONS=windowsonly}

Specific Item 1
Specific Item 2
Specific Item 3
etc...

This is basically just so I have a little more control of the overall appearance of my context menus. As im sure everyone is more than aware, with the installation / removal of programs, and some annoying programs, you can quickly have a context menu which is quite simply 90% full of items you have no interest in / use very little, and make the menus look messy and much more confusing than they need to be. That's why I just move all the system context menus to the "All other Context Items > " sub-menu with the Filetype CONTEXTMENU CONTEXTOPTIONS=windowsonly command. With the above approach, I have complete control of how the context menus will look (apart from the "All other Context Items" sub-menu which is system-generated)

  1. So I can integrate some control of file type context menu into my sidebar control

I was experimenting with a sidebar context menu, and as part of this I would like to of had control of filetype group context menu items, to place them where I want in the sidebar. It is probably easier to explain by just linking to the video (excuse the cheesy music! :stuck_out_tongue: ) and the thread regarding it here on the forums.

[Video]
youtube.com/watch?v=qmSEPgRTGuk

[Thread]

Ah... referencing a FileType Groups context menu items on a toolbar button makes that command example make more sense.