Getting mouseColor from outside the app window
Kevin Stallibrass
kevin at stallibrass.com
Fri Oct 23 08:32:10 EDT 2009
Hi,
I want to sample the color under the cursor and am using
set the cursor to cross
repeat until the mouseClick
set the backgroundColor of graphic "sample" to the mouseColor
put the mouseColor into fld "rgb"
end repeat
set the cursor to arrow
This works fine within the confines of the rev app window but is it possible
to sample a color from anywhere on the screen?
Using the above script captures the color outside the rev app window and
puts the color into the graphic as the mouse moves but the mouseClick is
ignored when the cursor is outside the app window
Seems logical that it should act this way but there must be a way to get
round this. I'd be grateful for any pointers
Regards
Kevin Stallibrass
More information about the use-livecode
mailing list