Click here to Skip to main content
14,216,096 members
Rate this:
Please Sign up or sign in to vote.
See more:
Below is the screenshot of the registry key of the shell contextmenu. I couldn't find the paste key here

What I have tried:

I am trying to get the click event of the shell contextmenu paste event. Whether the user clicks on paste event or not. But I couldn't find the registry key and Is there any other way that I can get the click event of the shell context menu?
Updated 24-May-18 21:52pm
Rate this:
Please Sign up or sign in to vote.

Solution 2

Just like there is no "Paste Event", there is no "Paste Registry key" or even "Paste Context menu item" - Context menus are free text, they aren't "windows standard items" where all apps use the same items (like they do for Open and Save dialogs). You can create your own context menu which uses "Save the highlight" and "Insert Here" instead of "Copy" and "Paste" and link that to your code in any way you chose. While Visual Studio will "Insert common items" to a context menu for you, it doesn't hook them up, nor is there any mechanism to ensure that they do anything at all!

Seriously, you're going down the wrong route here - before you get too embedded in this project, I'd see if you can change it to something that is going to work or you run the risk of failing your masters on the thesis alone ... Security can't be implemented just via copy and paste!
Dilan Shaminda 25-May-18 5:13am
Actually since my topic is related to protect confidential data I have to do some research about the possibilities that can happen. That's why I tried to detect paste event.Actually this is only one use-case of my thesis. But I can write in my report why it is not possible to detect the paste event. I know that the security cannot be implemented only by copy paste. But my client is interested to know is it possible? if not why? So I hope why I posted the question here. To get the feedback from the community of experts :-) Thank you for the answer
Dilan Shaminda 25-May-18 5:33am
Can you provide me a link to a web page or an article where I can put a reference about this ? Then I can explain it in my report with a proper reference. Thanks in advance!
OriginalGriff 25-May-18 5:48am
There is no web page or article about "this is how you work with something that doesn't exist" that i am aware of. Religious ones excepted, of course. :laugh:
Dilan Shaminda 25-May-18 5:54am
Ha no.. I mean not "How I work with something that doesn't exist" :D I want to write about it with a proper reference in my report :-)
OriginalGriff 25-May-18 6:23am
Nobody writes articles explaining "this is what's not in the API" - so there isn't anything to reference!
Dilan Shaminda 25-May-18 6:23am
Ok Thank you :-)
Rate this:
Please Sign up or sign in to vote.

Solution 1

We explained to you yesterday at How to capture the paste event in windows?[^] that this is not possible.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Advertise | Privacy | Cookies | Terms of Service
Web01 | 2.8.190619.2 | Last Updated 25 May 2018
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100