mouse button

Richmond richmondmathewson at gmail.com
Fri Jan 22 16:00:11 EST 2016


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.




More information about the use-livecode mailing list