oops....i mean if mouse key is down :) On Sat, Dec 29, 2018 at 10:18 AM Tom Glod <t...@makeshyft.com> wrote:
> I believe the Keysdown() function picks up the mousebutton as well. that > will give you the info whether enter key is down. > > On Sat, Dec 29, 2018 at 10:06 AM Richmond via use-livecode < > use-livecode@lists.runrev.com> wrote: > >> This does *NOT* work: >> >> on mouseEnter >> if mouseDown then >> set the backgroundColor of me to red >> else >> set the backgroundColor of me to green >> end if >> end mouseEnter >> >> on mouseLeave >> set the backgroundColor of me to white >> end mouseLeave >> >> which is a "right pox" >> >> Richmond. >> >> On 29.12.18 16:45, Richmond wrote: >> > >> > This may rank as one of the goofiest questions I've ever asked: Oh, >> > well, here goes: >> > >> > Imagine a mosaic of faux buttons if you will. >> > >> > Each of these buttons will play a tone if I drag my mouse into it: >> > >> > on mouseEnter >> > >> > play audioClip "x.aiff" >> > >> > end mouseEnter >> > >> > All well and good . . . >> > >> > BUT, Richmond wants more . . . >> > >> > I want to get different results from a simple mouseEnter >> > >> > and a mouseEnter while the left-click button is down. >> > >> > 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 > > _______________________________________________ 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