VBS 中的 MSGbox 随变量值更新 [英] MSGbox in VBS that updates with value of variable

查看:47
本文介绍了VBS 中的 MSGbox 随变量值更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只是想知道我怎么能有一个 MSgbox 来显示一个不断变化的变量的值.基本上,一个数字每次循环时都会添加一个.我想在不必打开一百万个窗口的 MSGbox 中显示它

Just wondering how i could have a MSgbox that displays the value of a variable as it constantly changes. Basically a number has one added to it everytime it loops. I want to display that in a MSGbox that doesnt have to open a million windows

推荐答案

一种解决方法是使用 PopUp

Set objShell = WScript.CreateObject("WScript.Shell")
For i = 1 To 3
    objShell.Popup i, 1, "AutoClose MsgBox Simulation", vbInformation+vbOKOnly
Next

这将在 1 秒后自动关闭"类似的 MsgBox

This will "autoclose" the MsgBox lookalike after 1 second

这篇关于VBS 中的 MSGbox 随变量值更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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