gpt4 book ai didi

c# - 如何自动响应 msgbox

转载 作者:太空宇宙 更新时间:2023-11-03 19:34:31 25 4
gpt4 key购买 nike

我正在开发一个 C# 应用程序来自动运行旧版 VBScript(vbs) 文件,该文件调用多个 VB6 .exe 文件。 .exe 文件有消息框弹出窗口,我需要对其进行“响应”,以允许 VBScript 进程在无人值守的情况下运行。响应需要是 Enter 键。我没有 .exe 文件的来源,也不知道它们到底做了什么。我将不胜感激任何帮助...

最佳答案

您可能会找到 AutoIt有帮助。

AutoIt v3 is a freeware BASIC-like scripting language designed for automating the Windows GUI and general scripting. It uses a combination of simulated keystrokes, mouse movement and window/control manipulation in order to automate tasks in a way not possible or reliable with other languages (e.g. VBScript and SendKeys).

您可以仅使用 AutoIt 编程语言开发某些东西,也可以从您自己的应用程序中驱动它。我的团队正在使用它,取得了很好的成功。

关于c# - 如何自动响应 msgbox,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2659708/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com