How do I specify the mouse button (mousebuttonNumber) in a script?
Dr. Robert E. Ball
reball at redshift.com
Tue Apr 18 01:44:41 EDT 2006
To Ken, Devin, and Jacqueline Landman Gay -- thank you very much for helping
me out here. After you showed me how to correctly script the mouse button, I
still couldn't get the script to compile. I thought there was a bug in Rev
2.7. Then I discovered another error (mine, not Rev's). I had one too many
"end mouseUp" statements in the (long) script.
Amateur developers like me owe you and the others on this use list a great
deal of gratitude for helping us find our mistakes. We appreciate your
patience.
Bob Ball
On 4/17/06 4:13 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
>> Sons of Thunder Software
>> Web site: http://www.sonsothunder.com/
>> Email: kray at sonsothunder.com
>>
>> _______________________________________________
>
> 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
>
>
> _______________________________________________
> 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
>
--
Robert E. Ball, PhD
Distinguished Professor, Emeritus
Department of Aeronautics and Astronautics
Naval Postgraduate School
Monterey, California
More information about the use-livecode
mailing list