ColorAtScreenLoc Function

Klaus major-k klaus at major-k.de
Tue Jan 21 12:41:50 EST 2014


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





More information about the use-livecode mailing list