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

+2


a source to share


3 answers


Save the last entry, and if the new entry is the same as the last, cancel?



+3


a source


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.

0


a source


Do you have plugins in FF? It seems so. Try it out in a "bare" system with a brand new FF and nothing else.

0


a source







All Articles