How do I specify the mouse button (mousebuttonNumber) in a script?

Devin Asay devin_asay at byu.edu
Mon Apr 17 18:33:36 EDT 2006


Robert,

Do it like this:

on mouseUp whichButton
   if whichButton is 3 then
     -- do stuff for right mouse button here
   end if
end mouseUp


HTH

Devin

On Apr 17, 2006, at 4:18 PM, Dr. Robert E. Ball 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?
>
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University




More information about the use-livecode mailing list