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

vbscript wait for an hour

48 views
Skip to first unread message

Yada

unread,
Mar 25, 2022, 1:48:10 AM3/25/22
to
yo,

can anyone tell me how to pause my script for an hour

R.Wieser

unread,
Mar 25, 2022, 4:51:12 AM3/25/22
to
Yada,

> can anyone tell me how to pause my script for an hour

I'm pretty sure Google or DDG can. In fact, I put "vbscript pause one hour"
(no double quotes) into DDG and got it as the very first result.

IOW : Search yourself first, ask us only if you can't find anything. We're
not alexa.

Regards,
Rudy Wieser


Mayayana

unread,
Mar 25, 2022, 7:54:55 AM3/25/22
to
"Yada" <fireba...@gmail.com> wrote

| can anyone tell me how to pause my script for an hour

Something has to know when to wake it up, so you
can't really pause, but there is a sleep method. It counts
in ms. So you'd need to do something like:

For i = 1 to 60
wscript.sleep 60000
next


JJ

unread,
Mar 26, 2022, 12:55:22 AM3/26/22
to
I can't blame him, though. Considering that recent Windows versions don't
even have enough offline help files, and Microsoft tend to make old (but
still valid) information in their site to be difficult to find.

R.Wieser

unread,
Mar 26, 2022, 3:26:37 AM3/26/22
to
JJ,

> I can't blame him, though.

I think I can, seeing that I just took the OPs own words, plugged them into
a search engine and got the answer back as the very first result. Spend
time: a few seconds.

Even if you would argue that the OP would not yet be able to recognise the
"sleep" command as what he needs (read: he's an absolute newbie), it
/should/ be recognisable as something possibly in the same direction, worth
to do a quick second search for.

> Considering that recent Windows versions don't even have enough offline
> help files, and Microsoft tend to make old (but still valid) information
> in their site to be difficult to find.

:-) Guess what I got as the first result when I plugged "vbscript help" into
DDG. Also returned where quite a few websites related to VBScript and how
to use it.


By the way: I once stood next to a kid who was writing some code, and he
asked me which command he needed for something. I asked hem why he asked me
instead of trying to find it in the book laying right next to him. His
reply was an honest "its easier to ask you". I never forgot. :-| :-)

Regards,
Rudy Wieser


Mayayana

unread,
Mar 26, 2022, 8:39:51 AM3/26/22
to
"JJ" <jj4p...@gmail.com> wrote

| I can't blame him, though. Considering that recent Windows versions don't
| even have enough offline help files, and Microsoft tend to make old (but
| still valid) information in their site to be difficult to find.

That's a good point. MS have actually gone out of their
way to remove specialized help and SDKs. You have to
download the whole Win32 SDK to get help files. Even then
they're only available as HXS. I ended up writing my own
HXS -> CHM converter so that I can get newer help if I
want it, and so that I can get sepcific help files separate.

On the other hand, when someone starts out with "yo" and
can't be bothered with punctuation or capitalization, there's
a good chance that they only know how to ask their mother
when they need something, simply because they haven't
learned how to relate to the outside world.

Should we indulge such a person? Rudy's approach is "spare
the rod and spoil the stoic". I feel more generous because that's
what this group is for. Most questions can eventually be answered
with search, but the bigger challenge is often knowing enough
to know what to seach for.


R.Wieser

unread,
Mar 26, 2022, 10:06:44 AM3/26/22
to
Mayayana,

> Should we indulge such a person? Rudy's approach is "spare
> the rod and spoil the stoic".

Although I don't think that learning by the end of a rod is a good way, I'm
quite sure that pampering someone isn't the way to go either.

> Most questions can eventually be answered with search, but the
> bigger challenge is often knowing enough to know what to seach for.

:-) Thats why I, in my reply to the OP, mentioned what exactly I sought for
and which search-engine I used for it. With just a bit of luck the OP
should be able to get the same result as I did.

Regards,
Rudy Wieser


JJ

unread,
Mar 27, 2022, 5:06:37 AM3/27/22
to
On Sat, 26 Mar 2022 08:26:00 +0100, R.Wieser wrote:
>
> By the way: I once stood next to a kid who was writing some code, and he
> asked me which command he needed for something. I asked hem why he asked me
> instead of trying to find it in the book laying right next to him. His
> reply was an honest "its easier to ask you". I never forgot. :-| :-)

That reminds me of someone...

JJ

unread,
Mar 27, 2022, 5:10:01 AM3/27/22
to
On Sat, 26 Mar 2022 08:40:08 -0400, Mayayana wrote:
>
> On the other hand, when someone starts out with "yo" and
> can't be bothered with punctuation or capitalization, there's
> a good chance that they only know how to ask their mother
> when they need something, simply because they haven't
> learned how to relate to the outside world.

Good observation. Respect is hard to find these days.

R.Wieser

unread,
Mar 27, 2022, 11:04:51 AM3/27/22
to
JJ,

> That reminds me of someone...

Someone I know ?

Regards,
Rudy Wieser


Mayayana

unread,
Mar 27, 2022, 12:32:37 PM3/27/22
to
"R.Wieser" <add...@not.available> wrote

| > That reminds me of someone...
|
| Someone I know ?
|

Probably everyone knows such people, who think it's
clever to cheat on the test, so to speak. But then
there are also people just having a hard time. I like to save
other people from struggle when I can, if I have or know
what will help them.

I think that comes from being a handyman by nature.
Often I can do it myself if I can only find out certain
information. Car repair is a good example. Often I can
do the job, but I need some info. I think of it as sort of
a handyman's creed: Anyone trying to do something for
themselves deserves any help I can lend. And in return,
I seek the same help when I need it.

Years ago I was in a Linux group, trying to set up a
new system. I asked something and a college professor
regular answered, "Google's thataway!" I thought how
tragic it is that we have such people in schools, who
see knowledge as a competition and have no true
appreciation for understanding. That's something that's
never been a problem on Windows. There's always been an
MVP hanging around, happy to help people understand.


R.Wieser

unread,
Mar 27, 2022, 1:00:47 PM3/27/22
to
Mayayana,

> Anyone trying to do something for themselves deserves any
> help I can lend.

Yup, same here. But the "trying themselves first" is the key phrase. Had
to learn that the hard way.

> I asked something and a college professor regular answered,
> "Google's thataway!"

Not really friendly. On the other hand, its possible he got bitten by one
of those "clever" people you named just once too often. Than again, helping
someone without spoonfeeding him is something a learned teacher should have
/some/ feeling for.

> That's something that's never been a problem on Windows.
> There's always been an MVP hanging around, happy to help
> people understand.

Too bad that they do not hang around in the Win32 newsgroup (any)more.
Sometimes I do have problems that take a *lot* of time to figure out by
myself and, looking back, to which a simple "have you thought of {this}"
might have saved me quite a few hours.

Regards,
Rudy Wieser


0 new messages