mouseStillDown - Problem for trapping the mouse btn number
Sarah Reichelt
sarah.reichelt at gmail.com
Fri Jan 15 03:41:38 EST 2010
On Fri, Jan 15, 2010 at 10:12 AM, zryip theSlug <zryip.theslug at gmail.com> wrote:
> Hi all,
>
> Maybe I'm doing something wrong but I can't trap the mouse button
> number in a mouseStillDown handler.
>
> local lmyLoop
>
> on mouseStillDown pMouseBtnNumber
> add 1 to lmyLoop
> put "Test "&&lmyLoop&&"Button pressed"&&pMouseBtnNumber into fld "Field"
> end mouseStillDown
>
> My pMouseBtnNumber remains desperately empty...
I haven't tried this, but I assume it is an error in the docs. It may
not be included for speed reasons.
One work-around would be to store the mouse button in a script local
on mouseDown. That way you could refer to it on every mouseStillDown
without having to poll it again.
Cheers,
Sarah
More information about the use-livecode
mailing list