Is it possible to replace the windows explorer context menu with something other than a menu? - windows

I would like to write an application/extension that would replace the default explorer right-click context menu with something other than a menu, preferably a custom window. Is this possible, and if so, how?

I haven't tried it myself, but implementing a shell extension that subclasses the explorer window seems like the way to go. The following CodeProject article talks about a shell extension with a keyboard hook. It should be possible to adapt this to intercept the mouse and WM_CONTEXT messages:
Shell Extension with Keyboard Hook

Related

Shortcut to focus on results when searching in 'Open...' [CMD+O] modal

When I open finder and then go to the search field I can get to the filtered results by hitting TAB and then DOWN.
This is not working when I search within the modal which appears when I want to open something for example in sublime-text. I always have to use my touchpad/mouse which I would prefer to avoid. Am I missing something trivial or is there a way how to get to the results just by using keys?
Also you should checkout UIBrowser, it shows you the UI elements for scripting and you could write an AppleScript to select the area you want. Then use automator to create a service which you can set a keyboard shortcut for. Or Fastscripts is a nice little app that you can use to set shortcuts to applescripts.
In System Preferences > Keyboard > Shortcuts, you need to enable Full Keyboard Access for All Controls.
You can also toggle the setting at any time using Control + F7
With this setting enabled, you should be able to tab into the results.

Custom key for multiple cursor in VSCode

In VS Code you need to use alt to set multiple cursors. Is there any way to change it to, maybe, ctrl? Using alt really annoys me as it's less comfortable to me and it always toggles menu bar which I hid on Windows:
photo
Or maybe is there any other solution, maybe to change key that toggles menu? I couldn't find any useful shortcut entries in shortcuts config of vs code.
It is not currently possible to customize mouse shortcuts, the feature request for that is here https://github.com/Microsoft/vscode/issues/3130
It's actually completely unusable on most Linux distributions as it's an OS-level shortcut.

Windows7 Shell Control Panel Custom Item like

I want to know how we can achieve the same look and feel and functionality too to implement a configuration application in the shell control panel of the windows 7.
To register the control panel is easy, something like: http://msdn.microsoft.com/en-us/library/windows/desktop/cc144195%28v=vs.85%29.aspx
But what i want is to implement something for example like the UI of the "Uninstall Program" option in the Control Panel, an application like that without popping into a dialog or property sheet or a different process.
How we can accomplish this? MSDN has any section explaining how we can achieve this?
Thanks

How to add item to windows explorer content menu in delphi?

I would like to create menu item in windows explorer content menu (for all file types) which after click will open my application and pass the selected file name to it. Is there any tutorial for this ? I know there is ShellPlus component available but it's a bit outdated.
Registry
This method is easy since it comes down to adding some registry keys. The downside is that you can't put any logic in it. You can read about it here and here a simple example in Delphi. You get a bit more control if you are using DDE to execute the menu items. See here for a Delphi example.
Shell Extension
This method is a bit more work, but you can completely control the context menu from code. You would have to write a DLL, implement IContextMenu (or others) and register the dll with Windows Explorer. You can read about it here. You already mentioned Shell+.
Delphi includes a demo project for shell extensions. Look in the Demos\ActiveX\ShellExt folder.
This is possible independendly from the programming language by setting up shortcut menu handlers for the desired filetype(s) in the registry. There you can call your application with the correct path, the correct options and the right file-placeholders.
See the MSDN article on Creating Shortcut Menu Handlers for more detailled information.

Adding item to the Desktop context menu in Windows

I want to add an item into the Desktop context menu (the menu you see when you right-click on an empty space on the Windows Desktop).
Something like Catalyst Control Center in this screenshot:
I know how to add items to files' and folders' context menus through registry, but the Desktop seems to work differently: I didn't even find the text in the registry.
So, how can I add a new item into the Desktop menu and how can I associate some code with it?
I think the solution is language independent, if it's not, I'd appreciate any code that helps.
Such a handler must be registered in HKCR\Directory\Background, instead of usual locations like HKCR\Directory, HKCR\Folder, etc.
Check out Creating Shell Extension Handlers in MSDN.
There's a series of articles on CodeProject that details writing Shell Extensions and is very good:
http://www.codeproject.com/KB/shell/shellextguide1.aspx

Resources