剪贴板更改通知? [英] Clipboard change notification?

查看:101
本文介绍了剪贴板更改通知?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道如何将内容放入剪贴板并从剪贴板中检索内容。

I know how put content to and retrieve content from the clipboard.

但是,在这两个操作之间,另一个操作可能会更改剪贴板中的内容。

However, between these two operations, it is possible for another operation to change the content of the clipboard.

是否有一种方法可以在任何应用程序修改剪贴板时得到通知?

Is there a way to be notified when any application modifies the clipboard?

推荐答案

我所能找到的只是一个用手写的剪贴板监视器 C#/ VB.NET。我看到了WPF和WinForms,所以我假定这是一个可行的选择。

All I could find was a Clipboard Monitor written in C#/VB.NET. I see WPF and WinForms, so I assume this is a viable options.

涉及从user32 dll调用一些方法。

在在编辑时,上面的原始链接已损坏。这是一个 archive.org快照

At the time of edit, the original link above is broken. Here's an archive.org snapshot

这篇关于剪贴板更改通知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆