如何从vb中另一个正在运行的应用程序中检索文本

如何从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!).