mousecolor in LC 7.1.1 (rc3)

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
joel.epsteinBUS31vi
Posts: 135
Joined: Thu Sep 13, 2012 10:25 pm

mousecolor in LC 7.1.1 (rc3)

Post by joel.epsteinBUS31vi » Fri Nov 20, 2015 10:54 pm

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

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10044
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: mousecolor in LC 7.1.1 (rc3)

Post by FourthWorld » Sat Nov 21, 2015 12:33 am

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/
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

joel.epsteinBUS31vi
Posts: 135
Joined: Thu Sep 13, 2012 10:25 pm

Re: mousecolor in LC 7.1.1 (rc3)

Post by joel.epsteinBUS31vi » Sat Nov 21, 2015 1:31 am

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

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10044
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: mousecolor in LC 7.1.1 (rc3)

Post by FourthWorld » Sat Nov 21, 2015 2:52 am

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.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply