Discussion:
vbscript wait for an hour
(too old to reply)
Yada
2022-03-25 05:48:08 UTC
Permalink
yo,

can anyone tell me how to pause my script for an hour
R.Wieser
2022-03-25 08:50:54 UTC
Permalink
Yada,
Post by 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
JJ
2022-03-26 04:55:19 UTC
Permalink
Post by R.Wieser
Yada,
Post by 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.
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
2022-03-26 07:26:00 UTC
Permalink
JJ,
Post by 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.
Post by JJ
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
JJ
2022-03-27 09:06:33 UTC
Permalink
Post by R.Wieser
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...
R.Wieser
2022-03-27 15:04:44 UTC
Permalink
JJ,
Post by JJ
That reminds me of someone...
Someone I know ?

Regards,
Rudy Wieser
Mayayana
2022-03-27 16:32:53 UTC
Permalink
"R.Wieser" <***@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
2022-03-27 17:00:32 UTC
Permalink
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

Mayayana
2022-03-26 12:40:08 UTC
Permalink
"JJ" <***@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
2022-03-26 14:06:27 UTC
Permalink
Mayayana,
Post by 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.
Post by Mayayana
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
2022-03-27 09:09:58 UTC
Permalink
Post by Mayayana
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.
Mayayana
2022-03-25 11:55:13 UTC
Permalink
"Yada" <***@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
Loading...