如何在C#中检测复制文本的格式? [英] How I can detect copying text outsid of form in C#

查看:135
本文介绍了如何在C#中检测复制文本的格式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将文本复制出应用程序的sid 
应用程序检测到它并执行工作
样本翻译复制的文本并在应用程序中显示





我的尝试:



i想要我要将文本复制出来的应用程序

应用程序检测它并进行工作

样本翻译复制的文本并在应用程序中显示它

解决方案

谷歌的SetClipboardViewer。我没有时间进入它,但这是你唯一能够监控剪贴板而不用不时地查看内容的方法。


查看我的文章:



在他们两个之间,你应该有足够的信息来实现你的目标。



/ ravi

i want to wen i copy a text out sid of application 
the application detect it and do a work
for sample translat the copied text and show it in application



What I have tried:

i want to wen i copy a text out sid of application
the application detect it and do a work
for sample translat the copied text and show it in application

解决方案

Google for "SetClipboardViewer". I don't have time to go into it, but this is the only way you're going to get away with 'monitoring" the Clipboard without polling it for content constantly.


See my articles:

Between the two of them, you should have enough information to be able to achieve your goal.

/ravi


这篇关于如何在C#中检测复制文本的格式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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