GP SoftwareTwitter
Opus FAQsManualCommandsObjects

Tip: Organise and Speed-Up Context Menus

This small tip shows how you can use Opus to rearrange the context menus you see when right-clicking files. Opus allows you to add, remove and move items, including those put there by other applications.

A new and related function has been added to Opus since the tip was made. If you hide 3rd party context menu items you can use this command to show them all in the same place (eg a submenu) without having to list each one explicitly.

Filetype CONTEXTMENU CONTEXTOPTIONS=windowsonly

If you are having trouble finding a Context Menu's CLSID in the registry you may find it easier to enable Context Menu Debugging (ContextMenuDbg) so that Opus prints out the CLSIDs of all context menu handlers that it invokes. To enable ContextMenuDbg, follow the steps in the FAQ on diagnosing a crash due to a 3rd party context menu handler, under the heading Finding The Culprit.

[Leo Davidson]


How to clean up the context menu?
Mouse Right-Click
Right Click Menu
Context Menu ''the Return"
Context menu in DO on the Desktop folder, Vista Question
Right Click Menu
Add context menu item
Adding an item to the context menu
Toggle Preference Setting
Folder tree context menu: removing special items
Position of context menu item
Tortoise - right click menu gone
Add files to folder
Easy way to customize right click context menu?
Edit a batch file
Slow response for right-click & context menu
How to enable winrar in right context menu+ListView as...?
Adding Context Menu Item To Toolbar
Toggle Preference Setting
Scan with AVG
Scan with AVG
Contextual menu problem with tortoise CVS v1.9.x
Can't get back Windows Context Menu
Changes to Context Menu
Can't get back Windows Context Menu
Lost Drop/Paste
Right click choices
Re-order context menu?
Anyway to make Windows Context menus stay { tired of shift }
All l need about 4 types of "File Create"
Create Context Menu Button
OpenExpert
Firewall reports internet conn. attempts on any right click
Avast! Context Menu
Internet Shortcuts
Lost right click commands
Tame folder context menu in DOpus 9
ShellToys
ShellToys
ShellToys
How to get normal folder context menu appearing as part of Lister Context menu?
File Type Context Menu
How to add menus from CLSID to folder background context menu?
Customize: right-click on files "context menu"
Help to Eliminate several context menu items
Help to Eliminate several context menu items
Clean-up the "all files and folders" context menu?
Context menus in Windows and DOpus not always the same
Context menus in Windows and DOpus not always the same
Windows context menu as submenu
Change context menus
Context Menu (files, folders) tweaking
GUID for Share with
Clashing entries on context menu for a file
Manipulate context menu
Zip functionality for RAR files?
Is there a way to manage other apps context menu items?
Edit Menu Order
Any simple way to reorganize and clean up context menu?
Copy item from full file context menu to dopus file context
Removing items from the right-click menu (Context Menu)
Crash, exit or high CPU when right-clicking certain files
How to change Folder right-click context menu?
Right Click Menu
Impossible to run KAV within the Dopus lister
Can not make a new BrIefcase
Does Opus have sub-folder tip/preview?
Does Opus have sub-folder tip/preview?
How to clean up the context menu?
Running an application from file context menu
Replace Context Menu
DropBox Folder Context Menu?

I´m not sure, if to ask here, but how can i force particular entries to the top? Actually i´d like even to get rid
of those four entries, since they are mostly redundant. For example »open« is done by pressing enter, i have no printer,
& the other two can be done by other means.

Those top items are probably filetype verbs, which Opus's filetype editor shows on the Actions tab. They always appear at the top of the context menu.

While you can delete them it's not a good idea as you'll break anything which depends on them. The Open verb in particular should never be deleted because that is usually what gets run when the file is double-clicked (etc.).

Ok, so i better leave them there. I´ve rearranged the menu, so now the Blowfish menu is at the bottom, which is also quite fast to access. I also found a nice trick, how to clean up some entries when showing the »full« context menu (pressing shift). It looks like Shellmenu & ShellExView from Nirtools can only hide stuff in the Explorer (like several Rar/7-Zip/etc entries), that still remains viewed in Opus´ context menu.

But simply adding two dashes before the CLSID, like »--{B41DB860-8EE4-11D2-9906-E49FADC173CA}« does the job. Maybe i overlooked some regular way to tweak this, but this also works quite well.

Yeah, on Vista and above the Nirtools add a "blocked" registry value which Opus 9 doesn't know about. Opus 10 will see it.

That's usually fine, and is similar to what Nirtools does on XP and below (it renames the InProcServer value instead, from what I remember). It's vaguely possible that it will take out more than just the shell extension, though, if the same COM object (represented by the CLSID) implements more than just a shell extension.

A better way to block a shell extension by CLSID is to add it to Opus's blacklist: Go to Preferences - Miscellaneous - Advanced and double-click the ignore_context_menus setting. A small window will appear into which you should paste the CLSID values, including curly braces, of the extension(s) you want to exclude, one CLSID per line.

Yeah, cool, thanks. I removed the dashes, making those four hidden entries visible again, & pasted the CLSIDs to that place. I knew i saw it somewhere. This way it´s easier to reactivate them again & maybe less riskier.

Hello,

Can I put my question down here?

I have arranged my Opus context menu according to my taste. Using the Go FOLDERCONTENT command, I manage to include the Start Menu folder, having its contents revealed.

Now I would like to set its display order so that the files appear preceding the folders. At the moment, what is happening is vice versa.
Is there an argument for this purpose?

Thanks,

You could just add another Go FOLDERCONTENT like so:

Go /desktop FOLDERCONTENT=nodirs
Go /desktop FOLDERCONTENT=nofiles

Don't put them together but separate "actions" in the context menu. but the same sub menu.

The order you put them in will be the order they get displayed.

Reading the Internal Command documentation, the Set command has a way to do so.

Set SORTORDER=files

Can this command be used in conjunction with the Go FOLDERCONTENT command?

Next questions,

  • Can the context menu be colorized? To become pink, for instance?

  • I found JRiver Media Center's GUID number within the registry and incorporated it to Opus context menu through:

    FileType CONTEXTFORCE CONTEXTMENU={GUID}
    

    Its native Windows Explorer context menu does not provide the JRiver icon, hence I add it onto Opus context menu. But it is fruitless. Neither Opus context menu displays icon. Is this a kind of context menu command which falls into "come from the system but aren't provided as "static verbs" in the registry" category?

No...

To some extent - though perhaps not entirely what you're looking for (I think the overall background color of the context menu may be system-controlled?)...

It's similar to how you've guessed... when you invoke a shell extension through that command, Opus relies on the extension to provide the icon. I believe several of us have asked if it would be possible for Opus to override whatever the extension is supplying - for the case where you want the context menu extension but don't like the icon - or like seems to be your case when the extension seems not to provide an icon at all. Chime in on the Support forum if you'd like to ask GPsoft to comment on making such a change...

Oh... for the colorizing options, check Preferences->Toolbars->Appearance. Have a go at the settings there under the "Use Office 2003-style for toolbars" option and see that you think. These color settings affect BOTH toolbars and context menus. If there's another place in Opus to affect the context menu colors - I don't know it off top of my head.

After reading the internal command documentation repeatedly and playing around with it for weeks, I realize that this is true.

I guess so. I have tried the Office 2003-style toolbar as you recommend me but that too only goes as far as to customize the highlight and gradient colors of the context menu, not the background color which unfortunately, is what I was looking for. :neutral_face:

Luckily, JRiver provides static verbs for each of its shell extension items. I switched to ContextMenu VERB command and it worked. The desired icon could be loaded for each action I specified. :thumbsup:

You can set the toolbar background colour or background image in the Customize dialog. If you need more help please start a new thread in Help & Support as it's off-topic here.

The custom-context-menu does not work for me. Is this How-to up-to-date?

Yes, it still works for me and lots of other people.

OK, I found the "Actions tab" now. under specific file type extensions.

... but I didn 't find "Directory Opus Archives" there. So, AFAICT, the filetype actions will always be first on the context menu. Then, somehow, the category that "Directory Opus Archives" is in comes next. The rest of the context menu is what a DOpus user has control of. Is that pretty much it?

Preferences / Zip & Other Archives / Archive Context Menu.

OK. Turning off the Windows context menu items and the archive context menu item cleaned up the messy full context menus nicely and adequately. While I've made an "Open With >" submenu with one entry, I am not going to bother adding more items to it and using it at this juncture, as it seems like too much work for too little gain. Is there a way to get the Windows "Open With >" menu item on the context menu without all the other menu items?

OK. Turning off the Windows context menu items and the archive context menu item cleaned up the messy full context menus nicely and adequately. While I've made an "Open With >" submenu with one entry, I am not going to bother adding more items to it and using it at this juncture, as it seems like too much work for too little gain. Is there a way to get the Windows "Open With >" menu item on the context menu without all the other menu items?[/quote]

Nevermind! I found it! (The "Open With" ContextMenuHandler from the registry).

You can also use FileType OPENWITHMENU