Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > microsoft.public.scripting.vbscript > #11597
| From | "Mayayana" <mayayana@invalid.nospam> |
|---|---|
| Newsgroups | microsoft.public.scripting.vbscript |
| Subject | Re: MSWinSck.ocx - listen at localhost ? |
| Date | 2017-04-04 09:48 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <oc081r$2nb$1@dont-email.me> (permalink) |
| References | <58e36e5f$0$723$e4fe514c@news.xs4all.nl> <58e39125$0$815$e4fe514c@news.xs4all.nl> |
"R.Wieser" <address@not.available> wrote
| The "sleep(1000)" there seems to be the problem: when I replace it with a
| MsgBox the event pops up just nicely.
|
For what it's worth... I would think it makes more
sense to site the control in an HTA. Then you don't
need Sleep.
When I do need Sleep in an HTA or VBS where I
can't use Sleep, I use an external script function.
Sleeper.vbs contains this:
Dim Arg
on error resume next
Arg = WScript.Arguments(0)
wscript.sleep Arg
The function to call it is like so:
Private Sub SleepX(MSecs) '--Function to cause A pause since WScript is Not
available from webpage:
Dim Ret1
On Error Resume Next
Ret1 = SHcc.Run("sleeper.vbs " & MSecs, , True)
End Sub
Calling the sub: SleepX "500"
Back to microsoft.public.scripting.vbscript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
MSWinSck.ocx - listen at localhost ? "R.Wieser" <address@not.available> - 2017-04-04 11:59 +0200
Re: MSWinSck.ocx - listen at localhost ? "R.Wieser" <address@not.available> - 2017-04-04 14:27 +0200
Re: MSWinSck.ocx - listen at localhost ? "Mayayana" <mayayana@invalid.nospam> - 2017-04-04 09:48 -0400
Re: MSWinSck.ocx - listen at localhost ? JJ <jj4public@vfemail.net> - 2017-04-04 23:43 +0700
Re: MSWinSck.ocx - listen at localhost ? "R.Wieser" <address@not.available> - 2017-04-04 22:35 +0200
csiph-web