如何从vb中另一个正在运行的应用程序中检索文本 [英] how to retrieve text from another running application in vb

查看:73
本文介绍了如何从vb中另一个正在运行的应用程序中检索文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



无论如何,有没有使用vb检索文本,为另一个正在运行的应用程序着色的方法.
在此先感谢



is there anyway to retrieve text, color form another running application using vb.
thanks in advance

推荐答案

如果其他应用程序使用常规" Windows元素,则可以使用Windows API. WM_GETTEXT是一个很好的起点.
在带有摆动组件的Java应用程序的情况下,事情变得非常复杂.您可以使用JavaAccessBridge,它的一些功能已记录在文档中,其中一些甚至可以使用(但许多功能不起作用!).
If the other application uses "normal" Windows elements, you can use the Windows API. WM_GETTEXT is a good starting point.
In case of a Java application with swing components, things become terribly complicated; you can use JavaAccessBridge, some of its functions are documented and some of them even work (but many don''t!).


这篇关于如何从vb中另一个正在运行的应用程序中检索文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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