<br><br>I am capturing a screen shot, but then the image was already&nbsp;&nbsp; <br><br><br>image,&nbsp;&nbsp; how do I .load it ?<br><br>it&#39;s not image.load()<br><br><br><br><br>import time<br>import ImageGrab&nbsp; # Part of PIL<br>from ctypes import *
<br><br>class RECT(Structure):<br>&nbsp; _fields_ = [<br>&nbsp;&nbsp;&nbsp; (&#39;left&#39;, c_ulong),<br>&nbsp;&nbsp;&nbsp; (&#39;top&#39;, c_ulong),<br>&nbsp;&nbsp;&nbsp; (&#39;right&#39;, c_ulong),<br>&nbsp;&nbsp;&nbsp; (&#39;bottom&#39;, c_ulong)<br>&nbsp;&nbsp;&nbsp; ]<br><br><br>GetForegroundWindow = 
windll.user32.GetForegroundWindow<br>GetWindowRect = windll.user32.GetWindowRect<br><br><br>rect = RECT()<br>foreground_window = GetForegroundWindow()<br>GetWindowRect(foreground_window, byref(rect))<br>image = ImageGrab.grab
((rect.left, rect.top, rect.right, rect.bottom))<br><br><br><br>print time.time()<br><br>pix = image.load()<br>print pix[x, y]<br><br>x = 0<br>y = 0<br>for x in xrange(1,1024,1):<br>&nbsp; for y in xrange(1,768,1):<br>&nbsp;&nbsp;&nbsp; print pix[10,10]
<br>