How to get a clipboard paste notification and provide my own data?
Posted
by Uwe Keim
on Stack Overflow
See other posts from Stack Overflow
or by Uwe Keim
Published on 2010-02-19T17:12:37Z
Indexed on
2010/03/13
3:47 UTC
Read the original article
Hit count: 426
For a small utility I am writing (.NET, C#), I want to monitor clipboard copy operations and clipboard paste operations.
My idea is to provide my own data when pasting into an arbitrary application.
The monitoring of a copy operation can be easily done by using a clipboard viewer.
Something that seems much more advanced to me is to write a "clipboard paste provider":
- Answer to "what formats are available" queries of applications.
- Supply data to application paste operations.
I found this posting and this posting, but none of them seems to really help me.
What I guess is that I somehow have to mimic/hijack the current clipboard.
Question:
Is it possible to "wrap" the clipboard in terms of paste operations and provide my own kind of "clipboard proxy"?
Thanks
Uwe
© Stack Overflow or respective owner