用 C# 编写剪贴板查看器
我想编写一个学习词汇的程序。 只是每次,当我将一个单词复制到剪贴板时,它会将它们保存到文本文件中。
所以,有一个要求,我认为是:
- 我的程序像键盘记录器一样在后台运行?
- 每次我将单词复制到剪贴板时,检测偶数并将单词保存到文本文件中。
全部由C#完成。 所以,请给我一些建议! 非常感谢!
I want to write program to learn vocabulary. Simply each time, when I copy a word to clipboard, It will save them to text file.
so, there are requirements, I think that is:
- My program run in background like keylogger?
- Detect even and save words to text file everytime I copy a word to clipboard.?
all done by C#.
so, plz give me some advice! thank you very much!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
.NET SDK 中有一个名为 ClipboardSpy 的示例。
这是一个例子:
There's an example in the .NET SDK called ClipboardSpy.
Here's an example even:
要检测剪贴板更改,请使用 SetClipboardViewer。< br>
以下是如何在 C# 中创建剪贴板查看器的说明:
使用 SetClipboardViewer 在 C# 中创建 Windows 剪贴板监视器
To detect clipboard changes use the SetClipboardViewer.
Here are instructions of how to create a clipboard viewer in C#:
Create a Windows Clipboard Monitor in C# using SetClipboardViewer