C#窗口应用程序与其他应用程序从光标位置字 [英] C# window application get word from the cursor position from the other application

查看:140
本文介绍了C#窗口应用程序与其他应用程序从光标位置字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有C#窗口应用程序,我想文本光标所在位置或文本从其它应用程序,如记事本,记事本++或任何浏览器等选择的。

I have C# window application and I want to get text where the cursor is currently located or text is selected from the other application like notepad, notepad++ or any browser etc.

推荐答案

现在的问题是,你正试图从其他应用程序获取数据。除非该应用程序支持的方式来提供这个给你这将是非常困难的。

The problem is that you are trying to get data from another application. Unless that application supports a way to provide this to you it will be very difficult.

这会容易得多,如果信息可以从应用程序中进行检索,就像从一个形式

It would be much easier if the info could be retrieved from within the application, like from within a textbox or rich text control on a form

这篇关于C#窗口应用程序与其他应用程序从光标位置字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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