mouse button
Richmond
richmondmathewson at gmail.com
Fri Jan 22 16:14:01 EST 2016
On 22/01/16 23:00, Richmond wrote:
> On 22/01/16 20:46, John Dixon wrote:
>> look harder...
>>
>> mouse([buttonNumber])
>> the mouse
>>
>> from the dictionary...
>>
>>
>>
>
> So, I made a wee stack containing a field: fld "MB"
>
> and put this in the cardScript:
>
> on mouseDown
> if mouse(1) is "down" then
> put 1 into fld "MB"
> end if
> if mouse(2) is "down" then
> put 2 into fld "MB"
> end if
> if mouse(3) is "down" then
> put 3 into fld "MB"
> end if
> end mouseDown
>
> and when I click any of the mouseButtons
> I get NO result.
>
> Where am I going wrong?
>
> Richmond.
Well, where I went wrong was I forgot to
bung in some code to detect a '0' button.
I'm uploading my stack so that . . .
https://www.dropbox.com/s/qx5no1yu04gib9j/Mbutt.zip?dl=0
Richmond.
More information about the use-livecode
mailing list