This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Is there any API which will notify me (Listener) whenever any changes occurs at system clipboard ?
I already know a method (by using Timer) to track clipboard changes but I think if i check for clipboard's data at 100ms then lots of CPU (which has just single core) time will be wasted
i tried this but i guess, this listener only listens to the data flavour for eg: if i copy image using ctrl-c then listener gets invoked but when i again copy another image this time listener doesn't invoke
please run the code and check out whats happening , All I wanted to track is clipboard changes no matter what data is in clipboard but when ever user performs any copy operation i should get notification , is there a way (I know using Timer but it will consume lot of CPU)
Joined: Jun 09, 2003
> but when i again copy another image this time listener doesn't invoke
seems to work if the clipboard contents are cleared, but then there'd be nothing to paste
might be easier, provided there's not a lot of text components, to just override copy(),
and put a notification in there.
ohhh! I m soory i guess you are not getting my requirement I want to monitor each & every thing which sits in system clipboard
so for eg :
if you copy a .exe into clipboard i should get notified that something has copied into clipboard (No matter what it is...)