I am in a situation where importing non-standard python libraries is not suitable. Is it possible to grab the pixel colour at a given location on the screen (x,y) using only the standard python (2.6) libraries in Windows?
Asked
Active
Viewed 342 times
2 Answers
3
On Windows this is possible since it's possible to call a DLL using Python, see this posting. You then can call the same DLL as specified in this posting. Voila! The rest is just implementation ... now if you had asked if this were possible in an OS independent manner I'd be inclined to say no, but you explicitly stated this is on Windows.
0
No, The std libraries can't tell you anything about your screen

John La Rooy
- 295,403
- 53
- 369
- 502
-
Actually it is possible using ctypes and Windows dlls. – Tupteq Mar 27 '12 at 11:07