Repeats and mouse events
Geoff Canyon
gcanyon at inspiredlogic.com
Wed Feb 13 16:53:00 EST 2002
At 11:23 AM -0500 2/12/02, Charles Silverman wrote:
>--
>On mousedown
> get flushevents("mousedown")
>End mousedown
>
>On mouseup
> Put the seconds into tStartHere
> Repeat
> put the seconds - tStartHere into tTimeNow
> if tTimeNow > 15 then exit repeat
> if the mouse is down then
> put "You got It" into fld 1
> beep
> wait until the mouse is up
> exit repeat
> end if
> end Repeat
>Put "" into fld 1
>End mouseup
>--
Charles, I'm not following this script well enough to understand the goal. Can you explain it?
I'm getting out of the script that you want to extend the period for a double-click to fifteen seconds -- a mouseUp and a subsequent mouseDown within that time generates a beep and a field message. The message remains until a subsequent mouseUp.
Is that right?
regards,
Geoff
More information about the use-livecode
mailing list