: "How to use LiveCode"
Sent: Wednesday, August 06, 2014 10:28 PM
Subject: Re: mouseUp question
> Hi Larry, one approach is to do something like the code below, which
> delays the mouseUp handler from running until after the doubleClick
> interval has expired. You can adjust the
Just realised that won't work in this case! It will play the file and copy it.
Paul
On 2014-08-06, at 9:30 PM, Paul Hibbert wrote:
> Larry,
>
> One way to do this is to pass the result of each mouse handler to a command
> e.g.:
>
> local sMouseClicks
>
> on mouseUp
> put 1 into sMouseClic
Larry,
One way to do this is to pass the result of each mouse handler to a command
e.g.:
local sMouseClicks
on mouseUp
put 1 into sMouseClicks
mouseAction
end mouseUp
on mouseDoubleUp
put 2 into sMouseClicks
mouseAction
end mouseDoubleUp
command mouseAction
if sMouseClicks = 2
Hi Larry, one approach is to do something like the code below, which
delays the mouseUp handler from running until after the doubleClick
interval has expired. You can adjust the double-click interval to be
whatever you like (shorter times will cause less obvious delays in the
mouseUp handler runnin
In a field I have two scripts - one for mouseUp and another one for
mouseDoubleUp
When the user clicks a line in the field (mouseUp) it plays the .wav file they
click on
When the user double clicks it copies the .wav file to another field.
The problem is that LC runs BOTH scripts when the user