R click vs L Click

Devin Asay devin_asay at byu.edu
Tue Dec 18 14:14:36 EST 2007


Jim,

That information gets sent as a paramter with the mouseUp and  
mouseDown messages. So if you do:

on mouseUp pBtnNum
   --
end mouseUp

The mouse button will be in the pBtnNum variable. 1 is left button, 2  
is the middle button and 3 is right button. See the dictionary  
entries for the various mouse click messages for more information. It  
works on all platforms that support > 1 mouse button, which is pretty  
much all of them now.

HTH

Devin


On Dec 18, 2007, at 11:57 AM, jcwall at jaguar1.usouthal.edu wrote:

> I have been trying to see if I can distinguish which mouse button  
> was used to click on a button but without success.  Is this  
> possible and if so is it cross platform?
>
> Jim
>
> -------------------------------------
> James C. Wall, PhD
> Professor
> Department of Physical Therapy
> University of South Alabama
> 1504 Springhill Avenue, Room 1214
> Mobile AL 36604
> Phone:  (251) 434 3575
>   Fax:  (251) 434 3822
> _______________________________________________
> 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