如何在另一个程序中获取文本框的文本? [英] How to get Text of a TextBox in another program?

查看:61
本文介绍了如何在另一个程序中获取文本框的文本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在另一个程序中获取文本框的文本.这可能吗?

Hi,I want to get text of a textbox in another program.Is this possible?
can you help me please?

推荐答案

以及Wes''注释(也应视为解决方案),您可以尝试看看MS UI Automation框架(.NET API).假设其他程序不是用Java编写的(我发现大多数程序都没有公开其UI自动化ID和属性),那么您实际上将获得一个.NET API,该API可让您自动执行大型程序其他应用程序的一部分

MSDN链接 [
As well as Wes'' comment (should also count as a solution), you can try taking a look at the MS UI Automation Framework (.NET API). Assuming the other program wasn''t written in Java (I''ve found that most of those don''t expose their UI Automation IDs and properties), you''ll actually get a .NET API allowing you to automate really large parts of the other application

MSDN Link[^]


这篇关于如何在另一个程序中获取文本框的文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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