Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > microsoft.public.scripting.vbscript > #11154
| From | "Mayayana" <mayayana@invalid.nospam> |
|---|---|
| Newsgroups | microsoft.public.scripting.vbscript |
| Subject | Re: ComCtl.ListViewCtrl doesn't show itself .... |
| Date | 2015-10-16 12:09 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <mvr799$hik$1@dont-email.me> (permalink) |
| References | (2 earlier) <56163454$0$23736$e4fe514c@news.xs4all.nl> <mvpcqf$bl$1@dont-email.me> <5620cfee$0$23803$e4fe514c@news.xs4all.nl> <mvr0ud$n0e$1@dont-email.me> <56211584$0$23779$e4fe514c@news.xs4all.nl> |
| > Since the script is a single string of operations it's very
| > limited in the handling of events. The only thing one
| > can do is to call a function and then loop, waiting for
| > an event to "fire".
|
| I don't think I quite understand you. Those events are just triggers to
| execute functions you can write yourself. How's that more limited than
| what a normal windows app message-loop will do for you ?
|
What I mean is that in a windowed process, like
an HTA, there can be numerous events responded
to without holding up the process.
With VBS, there's no way to wait for events
while doing other things. An event is really just an
asynchronous function, where one has to wait for
the return while looping. This is a simplified version
of how I had to code an emailing component to
allow for asynchronous operation. It works, but
it gets complicated trying to keep the script running,
and not locked, while asynchronous ops are carried
out:
'---------------------------------
Var1 = False
DoIt
Do Until Var1 = True
Loop
WScript.DisconnectObject Ob
Sub DoIt()
Set Ob = WScript.CreateObject("Some.Obj", "Ob_")
'-- do stuff.
Ob.DoSomethingInvolved
While Ob.Busy = True
Wend
End Sub
Sub Ob_Onfinish()
'--do stuff
Var1 = True
End Sub
Sub Ob_Report(data)
RecordReport data
End Sub
'--------------------------------
Back to microsoft.public.scripting.vbscript | Previous | Next — Previous in thread | Next in thread | Find similar
ComCtl.ListViewCtrl doesn't show itself .... "R.Wieser" <address@not.available> - 2015-10-07 20:56 +0200
Re: ComCtl.ListViewCtrl doesn't show itself .... GS <gs@v.invalid> - 2015-10-07 18:28 -0400
Re: ComCtl.ListViewCtrl doesn't show itself .... "R.Wieser" <address@not.available> - 2015-10-08 11:18 +0200
Re: ComCtl.ListViewCtrl doesn't show itself .... "Mayayana" <mayayana@invalid.nospam> - 2015-10-15 19:31 -0400
Re: ComCtl.ListViewCtrl doesn't show itself .... "R.Wieser" <address@not.available> - 2015-10-16 12:25 +0200
Re: ComCtl.ListViewCtrl doesn't show itself .... "Mayayana" <mayayana@invalid.nospam> - 2015-10-16 10:21 -0400
Re: ComCtl.ListViewCtrl doesn't show itself .... "R.Wieser" <address@not.available> - 2015-10-16 17:22 +0200
Re: ComCtl.ListViewCtrl doesn't show itself .... "Mayayana" <mayayana@invalid.nospam> - 2015-10-16 12:09 -0400
Re: ComCtl.ListViewCtrl doesn't show itself .... "R.Wieser" <address@not.available> - 2015-10-16 18:35 +0200
Re: ComCtl.ListViewCtrl doesn't show itself .... "Mayayana" <mayayana@invalid.nospam> - 2015-10-16 12:49 -0400
Re: ComCtl.ListViewCtrl doesn't show itself .... "R.Wieser" <address@not.available> - 2015-10-17 01:00 +0200
Re: ComCtl.ListViewCtrl doesn't show itself .... noone@no.void (Reventlov) - 2015-10-15 21:43 +0000
Re: ComCtl.ListViewCtrl doesn't show itself .... "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-10-15 23:54 +0200
csiph-web