wait with messages...
Chipp Walters
chipp at chipp.com
Sun Feb 1 01:14:44 EST 2004
Ken,
Thanks for the explanation.
How would you use:
wait for messages
and
wait with messages
??
Would it be something like:
wait for 4 seconds with messages
?or:
wait for messages
(pauses handler until *any* message is received? and why would I ever use
this?)
I have a feeling there's some great power here, I just want to understand
how to use it!
YIH (yep it helps)
Chipp
> -----Original Message-----
> From: use-revolution-bounces at lists.runrev.com
> [mailto:use-revolution-bounces at lists.runrev.com]On Behalf Of Ken Ray
> Sent: Saturday, January 31, 2004 11:34 PM
> To: 'How to use Revolution'
> Subject: RE: wait with messages...
>
>
> Chipp,
>
> I usually use the form:
>
> wait until <something> with messages
>
> which allows for normal idle-time message processing while Rev waits.
> For example, one thing that has been bugged in Bugzilla is that opening
> up a popup menu remotely:
>
> popup (long id of btn "ContextPop" of card 1 of stack "MyStack") at
> the mouseLoc
>
> is modal on MacOS (i.e. it waits until you pick something from the menu
> before it goes to the next script line), but on Windows, it's not (it
> pops up the menu and immediately goes to the next script line).
>
> So to get around it, I have added right after it:
>
> if the platform is "Win32" then
> wait until the mouse is up with messages
> end if
>
> This causes the script to pause, but allows other things to happen
> (pendingMessages get sent, etc.).
>
> HTH,
>
> Ken Ray
> Sons of Thunder Software
> Email: kray at sonsothunder.com
> Web Site: http://www.sonsothunder.com/
>
> > -----Original Message-----
> > From: use-revolution-bounces at lists.runrev.com
> > [mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of
> > Chipp Walters
> > Sent: Saturday, January 31, 2004 1:58 AM
> > To: How to use Revolution
> > Subject: wait with messages...
> >
> >
> > Scott, (and anyone else who)
> >
> > I use send "fred" to this cd in 30 milliseconds all the time, but I'm
> > really not sure what
> >
> > wait with messages
> > and
> > wait for messages
> >
> > do
> >
> > The docs don't explain it very clearly...at least not to me:-(
> >
> > Does it:
> >
> > wait until any message whatsoever fires and then continue?
> >
> > Which means the RR IDE would fire it as it's sending
> > messages all over
> > the place.
> >
> > Can you provide an example where you would use one and not
> > the other or
> > not 'send'?
> >
> > tia,
> > Chipp
> >
> > _______________________________________________
> > use-revolution mailing list
> > use-revolution at lists.runrev.com
> > http://lists.runrev.com/mailman/listinfo/use-> revolution
> >
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
More information about the use-livecode
mailing list