使用 VBScript 自动化应用程序 [英] Automate an application using VBScript

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

问题描述

我是 VB 脚本的新手.我希望 VB 脚本根据应用程序的事件进行操作.例如:VBScript 应该等到应用程序中出现弹出消息.

I am new to VB Scripting. I want the VB script to act according to an event of an application. Eg : The VBScript should wait till a popup message appears in an application.

推荐答案

VBScript 和 Windows Script Host 仅支持原始 GUI 自动化,例如激活窗口(AppActivate 方法)和发送击键(SendKeys 方法).所以我怀疑你的任务是否可以用纯 VBScript 来完成.

VBScript and Windows Script Host only support primitive GUI automation, like activating windows (the AppActivate method) and sending keystrokes (the SendKeys methods). So I doubt that your task can be accomplished with pure VBScript.

但是,有一个名为 AutoIt 的免费 G​​UI 自动化工具应该能够执行您的操作需要.

However, there's a free GUI automation tool called AutoIt that should be able to do what you need.

这篇关于使用 VBScript 自动化应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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