>
>Hi all
>
>I'm intrigued with the new "wait for messages" command in 2.3.2 beta.
>So far I can't figure out how it works. Can anyone enlighten me?
>Scott?
Wait for messages allows you to do stuff while you wait as opposed to plain wait which
blocks any other activity.
Say you have a stack with a button and a field. The button script is :
on mouseUp
wait for 10 sec with messages
clone this stack
end mouseUp
In those 10 sec among other things, you can type text in the field.
I found it most useful in handling sockets with messages.
Normally when you have:
read from socket X with message Y
do other stuff
the other stuff is done right away after the read. But if you have:
read from socket X with message Y
repeat while Z is empty
wait for messages
end repeat
do other stuff
on Y
put 1 into Z
end Y
the other stuff is done after message Y was completed. So it can be a very powerful
feature, in a way allowing 2 scripts to run almost simultaneously.
>Cheers
>Dave Cragg
Regards, Andu
_______________________
[EMAIL PROTECTED]
Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.