Avoiding mouse polls
Ken Norris (dialup)
pixelbird at interisland.net
Sun Dec 15 16:40:00 EST 2002
> Date: Sat, 14 Dec 2002 21:08:34 -0700
> Subject: Re: Avoiding mouse polls
> From: Dar Scott <dsc at swcp.com>
> On Saturday, December 14, 2002, at 08:44 PM, David Vaughan wrote:
>> Do **not** use repeat. Use "send in N seconds" to repeat the message.
>> See Cubist's code and our other descriptions.
> He's right, Ken.
> If you can't bring yourself to move to using "send", we can advise
> concerning "wait" options, but "send" is the way to go.
> I'll put at the end of this mail a simple exercise using "send". It may
> help in understanding about send and you might be able to adapt it to
> your need.
> Dar Scott
> Here is an example for a flashing light. It is a simplification of one
> of my first scripts using send. I put this script in a circle graphic:
I don't have a problem with using "send in", the problem was how it repeats.
> on cycle
> send cycle to me in 333 milliseconds
> put the result into flashingID
> end cycle
Is the above "cycle" a special handler? If not, what causes it to repeat?
Thanks for the script, Dar.
More information about the Use-livecode