Reputation: 1774
I am investigating customizing context menu actions for any window and wondering if this is possible?
The idea is to right click on a window and the custom menu item pops up. (I observed that browsers e.g Chrome, Edge; have their own custom actions when you right click their window)
Ps: I know this involves editing the registry. I was able to acheive adding a custom menu item for folders. I'm looking for the "Window" eqivalent
Upvotes: 1
Views: 452
Reputation: 101606
Possible? Somewhat. Should you do it? No!
Internet Explorer actually had registry keys that would let you add custom menu entries. Other browsers do not, the correct solution for them is to develop a browser extension. The same extension can be coded to work in both Firefox and Chrome/Chromium-based browsers.
A generic mechanism is not possible but for classic win32 desktop applications you could probably do it with injection and hooks but this will require a fair bit of win32 and c/c++ experience to not create a crashy mess.
The most difficult bit would be any application that does not use normal HMENU
menus. You might have to do per-app hacks and workarounds, it is just not going to be worth the trouble...
Upvotes: 1