Repeats and mouse events
gcanyon at inspiredlogic.com
Wed Feb 13 16:53:00 EST 2002
At 11:23 AM -0500 2/12/02, Charles Silverman wrote:
> get flushevents("mousedown")
> Put the seconds into tStartHere
> 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
> wait until the mouse is up
> exit repeat
> end if
> end Repeat
>Put "" into fld 1
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?
More information about the Use-livecode