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

Jim Ault JimAultWins at yahoo.com
Mon Apr 17 20:38:35 EDT 2006


What does the Message Watcher show when you try to activate the script?
Sometimes the messaging will be a bit different than you think, which may be
the real bug and thus you may be able to do a work-around.

Jim Ault
Las Vegas


On 4/17/06 4:25 PM, "Dr. Robert E. Ball" <reball at redshift.com> wrote:

>>> 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?
>>> 
>>> On 4/17/06 3:26 PM, "Ken Ray" <kray at sonsothunder.com> wrote:
>>> 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
>> 
>> Ken -- I tried your suggestion and it didn't work. ??? Here is what I have
>> 
>> on mouseUp pBtnNumber
>> if pBtnNumber = 3 then
>>   put the vScroll of field "Instructions field" into scrolledHere
>>   set the vScroll of field "Instructions field" to scrolledHere - 475
>> end if
>> end mouseUp
>> 
>> Here is the error I get
>> 
>>        compiling at 4:06:57 PM
>> Type    Handler: error in command
>> Object    Instructions field
>> Line    on mouseUp pBtnNumber
>> Hint    on
>> 
>> ????? I have the latest version of 2.7 on a Mac using OS 10.4.6
>> 
>> Bob
> -----------------------------------------------------
> 
> Ken -- I tried my script in version 2.5.1 and it worked. It appears there is
> a bug in 2.7. How do we let them know this may be a bug?
> 
> Bob





More information about the use-livecode mailing list