Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Simple .vbs progress bar without Internet Explorer?

1,498 views
Skip to first unread message

Matthew C Rice

unread,
Dec 8, 2005, 6:33:38 PM12/8/05
to
Hi, I have been fiddling around for some time now, googling etc, trying
to find a simple progress/timer bar for a windows desktop. I have
found a bunch that rely on Internet explorer, but I was wondering if
there was one for .vbs that does not require IE..

I thought I remember a script I had lying around, for my old Windows NT
days, that I can't seem to find, that did exactly that, maybe i'm
wrong, not sure.

Really all it needs is a progress bar that fills from 0-100% in 30
seconds, to replace the sleep command I am currently using

mr_unreliable

unread,
Dec 9, 2005, 9:49:03 AM12/9/05
to
Matthew, there are numerous "ActiveX Components" that will show a
progressbar, but most sysAdmins will not tolerate any 3rd-party
controls on their systems.

If you are not willing to accept an actX component, I expect you
are going to be stuck with IE.

If you _ARE_ willing to accept an actX component, then I have
some further suggestions...

cheers, jw
____________________________________________________________

You got questions? WE GOT ANSWERS!!! ..(but,
no guarantee the answers will be applicable to the questions)

Matthew C Rice

unread,
Dec 9, 2005, 10:19:25 AM12/9/05
to
yes, I would like to explore some of those suggestions you may have

LakeGator

unread,
Dec 9, 2005, 11:43:25 AM12/9/05
to
If you don't mind having the script execute in a command window then
the example at the Microsoft Script Repository at:

http://www.microsoft.com/technet/scriptcenter/scripts/misc/progress/mspgvb01.mspx

Offers an example of how you could show a crude progress bar.

mr_unreliable

unread,
Dec 9, 2005, 11:45:52 AM12/9/05
to
Matthew, I was about to send you one of mine (wshNonModalDialog)
and a demo script, but it got REJECTED!!! (OUCH!).

I guess ocx's have such a bad rep that microsoft is keeping them
off the newsgroup(s?).

Look, if you really want to use something better than IE for
dialogs in your script, I suggest AutoIt (the language, not the
actX object). It has a more-or-less complete "forms capability"
(although in AutoIt-speak, they are not forms, they are GUI's).

They also have a purpose-built progressbar dialog:

---- <snippet in autoit> ----
; comments in autoit are indicated by a semi-colon, not single quote
; progresson shows the dialog, progressoff hides it.
; progressset sets the pbar to the indicated percentage.
; variable names all start with a "$" (dollar-sign), which is
; annoying, but hey, the benefits are worth that little aggrevation.
;
ProgressOn("Progress Meter", "Increments every second", "0 percent")
For $i = 10 to 100 step 10
sleep(1000)
ProgressSet( $i, $i & " percent")
Next
ProgressSet(100 , "Done", "Complete")
sleep(500)
ProgressOff()
---- <end snippet> ----

If interested, autoIt may be found here:

http://www.autoscript.com

If you are thinking that I shouldn't be mentioning a non-Microsoft
product on a vbScript newsgroup, you have a point. However,
Microsoft declared several years ago that no further enhancements
to the vbScript product would be forthcoming. And so, an alternative
product which does seem to be moving along with steady enhancements,
and some valuable ones for scripting (for example: api calls and
better graphical interfaces than msgboxes) imho does deserve some
credit for their work and consideration as an alternative when
vbScript doesn't measure up.

cheers, jw
____________________________________________________________

You got questions? WE GOT ANSWERS!!! ..(but,
no guarantee the answers will be applicable to the questions)

---- <rejected posting> ----
Matthew, here is one such actX object, called "wshNonModalDialog.ocx"
which can be used to show status messages and a progressbar.

There is also a demo script.

The ocx must be registered before it can be used.

cheers, jw

p.s. Your company net administrator, your security software, or
your mail reader may throw up when it sees the ocx. I believe
that Norton will call it "malicious". Anyway, if it gets blocked
then I can email it to you, if you are willing to provide a real
email address...

p.p.s. As with any 3rd-party control, you should treat this
ocx with extreme caution. It's best to only use it first on a
test system for about three-to-five years, to make sure that
there are no undesirable side effects from using it...

mayayana

unread,
Dec 9, 2005, 6:18:36 PM12/9/05
to
http://www.jsware.net/jsware/scripts.php3#prog
http://www.jsware.net/jsware/snazbar.php3

--
mayaya...@mindXXspring.com
(Remove Xs for return email.)

Matthew C Rice

unread,
Dec 9, 2005, 7:35:22 PM12/9/05
to
thanks mayayana that was exactly what I was looking for!!!

0 new messages