ColorAtScreenLoc Function
Ray
ray at linkit.com
Tue Jan 21 13:18:20 EST 2014
Hey Klaus, that actually works quite well and it's a lot easier than
wrestling with the imageData of a snapshot. I wonder why the
screenMouseLoc is not mentioned as a related item in the documentation
for the mouseLoc?
Thanks,
Ray
On 1/21/2014 12:41 PM, Klaus major-k wrote:
> Hi Ray,
>
> Am 21.01.2014 um 18:28 schrieb Ray <ray at linkit.com>:
>
>> Anybody know of a function which returns the color of the screen at a given location? Simply pass it a point and get the color of that pixel, kind of like a combination of the mouseColor function and the controlAtScreenLoc function. I'd be happy if it only worked for points on Livecode stacks. I've tried 'click at loc [myPoint] and then getting the mouseColor but it doesn't work.
> you could try to:
> ...
> set the ScreenMouseLoc to X,Y ## your position here
> put the mousecolor into tColorAtScreenLoc
> ...
>
> Best
>
> Klaus
>
> --
> Klaus Major
> http://www.major-k.de
> klaus at major-k.de
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list