-
-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Copying URL from Chrome triggers twice #16
Comments
Thanks. Will test this out... |
Forgot to mention. The same thing happens in your NetCoreWinForms sample. Put a breakpoint on: Edit: Not completely sure, but other implementations struggle with the same, so I wonder if Chrome is really copying things twice. I find this strange as I thought Chrome couldn't influence the clipboard if I right click in the address bar and copy the value.... Other implementations show me that it first copies the url without "http" and then with "http".... Anyways, one workaround is to just use a timer and ignore event that come in a close succession. |
That's quite a strange behaviour from Chrome. You're actually right about the copy issue. The Chrome address bar runs a script that does parse URLs on update and special events, e.g after copying/pasting. I'll need to test this further and probably provide a custom implementation or workaround that uniquely works with chrome. For now, try using the argument |
Yeah, I saw the same thing happening...
|
This same issue happens with the Windows 10 screen snip. Click on actions/notifications. Thanks |
It's OS Trouble
search google "clipboard event twice" or "clipboard event Echo" if Fire Clipboard.Settext in SharpClipboard.Tests.Winform also every Trouble Clear.
windows act many check clipboard point. But number 2 is Any trouble Solve. sorry about my english not good |
the same issue is happening on copying from firefox. |
I discovered the same problem happening even on XP :) |
And another problem, with this library, it detects images "twice" which were set by My.Computer.ClipBoard.SetImage method of VB.NET. There is a bug. |
I solved the problem with:
BTW: |
I tested copying from the address bar of Edge, Chrome and Opera. With Chrome and Opera my ClipboardChanged event is called (triggered or invoked, whatever) twice. With Edge it is called 3 times. Anyone familiar with the GetClipboardSequenceNumber function? Perhaps I misunderstand what that does but it seems to solve the problem. The WinAPI function can be used stand-alone. |
I notice that copying the URL from Chrome 84.0.4147.125 triggers the detection twice.
Seems to work as intended in every other occasion.
The text was updated successfully, but these errors were encountered: