如何使用GUI与Windows应用程序进行交互? [英] How to interact with the Windows applications with GUI?

查看:78
本文介绍了如何使用GUI与Windows应用程序进行交互?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为旧的丑陋的Win95应用程序编写一个方便的前端.我把问题钉在了这里:

I want to write a convenient front-end to the old and ugly Win95 application. I nailed the problem to this:

  1. 调用目标可执行文件;
  2. 等待出现应用程序窗口;
  3. 等待消息框(我希望它是一个消息框)出现
  4. 为消息框的确定"按钮触发onClick事件;
  5. 等待应用程序退出.

第1和第5项很容易,它只是 System.Diagnostics.ProcessStartInfo 的内容;但我不知道从其他项目开始.怎么办?

1st and 5th items are easy, it is just the System.Diagnostics.ProcessStartInfo stuff; but i have no idea where to start with the rest of items. How could it be done?

推荐答案

看看Windows自动化框架,这是一个很好的入门 codeproject.com/Articles/141842/

Take a look at the windows automation framework, this is a good starter codeproject.com/Articles/141842/

很抱歉延迟.

这篇关于如何使用GUI与Windows应用程序进行交互?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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