How do I specify the mouse button (mousebuttonNumber) in a script?
Ken Ray
kray at sonsothunder.com
Mon Apr 17 18:26:41 EDT 2006
On 4/17/06 5:18 PM, "Dr. Robert E. Ball" <reball at redshift.com> wrote:
> I want a mouseUp handler based upon button 3. In the printed Transcript
> Language Reference and the dictionary the mouseButtonNumber is indicated by
> "3" (Option + *). I have tried that in the form
>
> On mouseUp 3
>
> but that doesn't work. How can I indicate button 3 on the mouseUp handler?
That's strange that it would say that, here's how you do it:
on mouseUp pBtnNumber
if pBtnNumber = 3 then
-- right-click, do what you want
end if
end mouseUp
Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com
More information about the use-livecode
mailing list