Leslie Nielsen
    Tore Nilsen 
    tore.nilsen at me.com
       
    Tue Aug  8 15:05:03 EDT 2017
    
    
  
You are right! I have lived to long in the Mac world and did not think of a mouse with more than one button. This script will work though:
In the button sending the mouseUp:
on mouseUp
   dispatch mouseUp to button "BASH" with 1,true
end mouseUp
In the button receiving the mouseUp call:
on mouseUp pButton pAltKey
   if pAltKey then
      answer "Alt key was down"
   else
      answer "Alt key was up"
   end if
end mouseUp
Regards
Tore
> 8. aug. 2017 kl. 20:23 skrev J. Landman Gay via use-livecode <use-livecode at lists.runrev.com>:
> 
> On 8/8/17 11:05 AM, Tore Nilsen via use-livecode wrote:
>> And change the script in the BASH button to something like this:
>> on mouseUp pAltKey
>>    if pAltKey then
>>       answer "Alt key was down"
>>    else
>>       answer "Alt key was up"
>>    end if
>> end mouseUp
> 
> This will error. The parameter is always an integer representing the mouse button that was pressed.
> 
> -- 
> Jacqueline Landman Gay         |     jacque at hyperactivesw.com
> HyperActive Software           |     http://www.hyperactivesw.com
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
    
    
More information about the use-livecode
mailing list