Win11: get screen pixel color without Taskbar flash?
ambassador at fourthworld.com
ambassador at fourthworld.com
Thu Jul 9 02:46:16 EDT 2026
I know of two ways to obtain the RGB of a specified pixel on the screen:
1. mouseColor - set the screenMouseLoc, get the mouseColor, set the loc back
2. export snapshot - grab a single-pixel image
Both methods have a UI side effect that makes them non-starters for the app I'm working on: the Taskbar flashes momentarily while the screen pixel is being obtained.
This appears to be a momentary addition to the far-right of the Taskbar of the icon that's present when using the Win sceen shot tool. I'm guessing the API LC is using triggers that with both methods.
Does anyone know of another way to obtain the color of a specific location on screen which is outside of an LC windows?
If not, is there some clever way to avoid the momentary flash of the snapshot icon in the Taskbar?
TIA -
--
Richard Gaskin
Fourth World Systems
More information about the use-livecode
mailing list