Page 1 of 1

mousecolor in LC 7.1.1 (rc3)

Posted: Fri Nov 20, 2015 10:54 pm
by joel.epsteinBUS31vi
Hi all -

I'd be grateful for any suggestions:

this line:

Code: Select all

set the coloroverlay["color"] of image ("layer1") to the mousecolor
works fine on MacOS. But crashes the simulator on iOS.

however, if I do this:

Code: Select all

set the coloroverlay["color"] of image ("layer1") to "0,122,122"
everything works fine on both Mac and iOS. But I really need the mousecolor function. Is it broken in LC 7.1.1 (rc3) or am I missing something?

Thanks so much.

Joel

Re: mousecolor in LC 7.1.1 (rc3)

Posted: Sat Nov 21, 2015 12:33 am
by FourthWorld
Was this ever working in any earlier version? It's almost a philosophical question: what is the mousecolor on a system that has no mouse?

I would expect it should always return empty on iOS and Android, or perhaps and error message. It shouldn't crash, though, so I'd recommend submitting a bug report for that:
http://quality.livecode.com/

Re: mousecolor in LC 7.1.1 (rc3)

Posted: Sat Nov 21, 2015 1:31 am
by joel.epsteinBUS31vi
Yeah, I used to use mousecolor (pre 7.1.1) on iOS to get the color of the pixel the user tapped on. It was quite handy.

Now, when I try to use mousecolor on the iOS simulator, the app just crashes.

Any thoughts?

Thanks.

Joel

Re: mousecolor in LC 7.1.1 (rc3)

Posted: Sat Nov 21, 2015 2:52 am
by FourthWorld
joel.epsteinBUS31vi wrote:Any thoughts?
A scripting engine should never crash. I would suggest filing a bug report. Before you do it may be helpful to double-check this in the latest v8.0 build just to make sure it hasn't already been addressed.