Skip navigation
The problem is that applications need to use the OpenClipboard API to access the clipboard, which…
0:00 / 0:21

The problem is that applications need to use the OpenClipboard API to access the clipboard, which…

Kevin Gosse

@KooKiz5.8K followers

Visit on X
49 likesDownloadOriginal post

12,859 views

The problem is that applications need to use the OpenClipboard API to access the clipboard, which gives exclusive access. In other words, if two applications read the clipboard simultaneously, one is going to fail. Quoting the official documentation: "OpenClipboard fails if another window has the clipboard open." There's no perfect fix, most applications try to work around by implementing a retry logic, but even that can fail if an application keeps the clipboard open for too long. This is the reason why I developed ClipPing. It displays a visual notification when the clipboard is updated, so you can know immediately if your ctrl+c failed.

2 Comments

Comments from the original post on X (Twitter)

  • I..A..N..S's profile picture

    @IANSYT

    why is clipboard access exclusive lol

    3 likes

  • Harmalade's profile picture

    @harmalade_za

    I thought it was only me that noticed this