wait with messages...

Ken Ray kray at sonsothunder.com
Sun Feb 1 00:34:00 EST 2004


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
> 




More information about the use-livecode mailing list