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.
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode