如何自动响应 msgbox [英] How to automate response to msgbox

查看:28
本文介绍了如何自动响应 msgbox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个 C# 应用程序来自动运行调用多个 VB6 .exe 文件的旧版 VBScript(vbs) 文件..exe 文件有消息框弹出窗口,我需要响应"以允许 VBScript 进程在无人看管的情况下运行.响应必须是 Enter 键.我没有 .exe 文件的源代码,我也不知道它们究竟是做什么的.我将不胜感激任何帮助...

I am developing a C# application to automate the running of a legacy VBScript(vbs) file which calls several VB6 .exe files. The .exe files have message box pop-ups that I need to 'respond' to in order to allow the VBScript process to run unattended. The response would need to be the Enter key. I do not have the source for the .exe files and I do not know exactly what they do. I would greatly appreciate any help with this...

推荐答案

在花了过去 2 天的时间试图让它工作后,我终于放弃并决定采用另一种方法.我正在查询发送到外部进程的数据,并针对导致消息框弹出的条件对其进行筛选.感谢所有回答问题的人!

After spending the last 2 days trying to get this working, I finally gave up and decided on another approach. I am interrogating the data that is being sent to the external process and screening it for the conditions that are causing the message box pop-ups. Thanks to everyone who replied with answers!

这篇关于如何自动响应 msgbox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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