views:

77

answers:

1

I'm working on a small clipboard manager which should remember recent copied text. I'm using Windows system messages for being notified when something has been copied to clipboard by WM_DRAWCLIPBOARD. The problem is some of the applications I use send multiple WM_DRAWCLIPBOARD messages to my application, for instance when I copy something in Chrome web browser it's only one message, miranda's chat window sends 3 of the same messages with the same text to the clipboard viewer's chain. How to avoid this ?

A: 

Some applications put different versions of the same text on the clipboard (RTF,Unicode,ASCII) Could this be the reason?

Anders
I think it is. Even so, hwo to avoid this ? By saving clipboard change time and then if the change between now is really low, not to show it in history ? To keep only one copy in certain format ?