C # clipboard viewer ... on firefox event fires twice
iam is trying to use the code posted here C # Clipboard Event
it does work, but when testing, I found out that when copying from some application as an example firefox, you will get an event that fires twice, so if you save the copied text to a text file or write it to a text box in the application, text, copied from firefox will appear twice?
Can anyone help me with this problem? many thanks
a source to share
Try it on a bare system to make sure you don't get echoed somewhere. There should be only one notification. However, if something else changes the clipboard during the event, you might end up with two. For example, a clipboard scrubber.
You can also receive multiple events if the copying application is not doing it correctly. For example, when applications open / close the clipboard for each data format (they shouldn't, it's a bug if they do). Try copying from your regular old Notepad and see if you hear this event twice.
a source to share