Vb.net控制第三方GUI应用程序 [英] Vb.net controlling 3rd party GUI application

查看:149
本文介绍了Vb.net控制第三方GUI应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有专家,

有没有办法将价值放入第三方Windows桌面应用程序文本框并执行单击特定按钮。从我过去的经验来看。我知道vb 6.0能够做到这一点,前提是第三方应用程序也是使用Microsoft开发工具开发的......但是可以使它在Visual Studio 2016上运行吗?



我尝试了什么:



之前使用vb6,我试图从应用程序名称中获取processID。使用PID,我可以从应用程序中提取所有控件然后设置值。

但对于VB.Net,我试图在互联网上搜索我知道的...没有希望

Dear all experts,
Is there a way to put value into 3rd party Windows desktop application textbox and perform click on the specific button. from my past experience. I know vb 6.0 able to do that provided the 3rd party application is developed using Microsoft development tool as well... But can it be possible to make it work on Visual Studio 2016?

What I have tried:

Previously with vb6, I tried to grab processID from application name. With the PID, I can extract all controls from the application then set value.
But for VB.Net, I tried to search all over the internet that I know... no hope

推荐答案

如果它不是WPF,您可以获取控制窗口的ID并向其发送消息。如果它是WPF,你什么都做不了。但是你需要自己找到窗口ID。
If it's not WPF, you can get the ids of the control windows and send them messages. If it's WPF, you can't do anything. But you'd need to find the window ids yourself.


我不确定第三方应用程序是否是WPF。我可以参考的任何例子?
I am not sure if the 3rd party application is a WPF. Any example I can refer to?


这篇关于Vb.net控制第三方GUI应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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