Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MSGbox in VBS that updates with value of variable

Tags:

vbscript

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

like image 713
Monke Avatar asked Dec 15 '22 00:12

Monke


1 Answers

A workaround would be to use PopUp

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

This will "autoclose" the MsgBox lookalike after 1 second

like image 181
Pankaj Jaju Avatar answered Feb 23 '23 12:02

Pankaj Jaju