pixel colour on screen
Tim Roberts
timr at probo.com
Sun Jun 29 23:37:36 EDT 2008
cjstuttle at hotmail.com wrote:
>
>Could anyone help me, I'm a python noob and need some help. im trying
>to find some code that will, given a screen co-ordinate, will give me
>the colour of that pixel in RGB. i have found a lot about getting the
>pixel colour from a picture file with a given co-ordinate, but is it
>possible to do it from the whole screen output regardless what
>application the selected pixel is in?
Which operating system? If you are on Windows, and you have pywin32
loaded. you can use the Windows APIs GetDC and GetPixel.
--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the Python-list
mailing list