python script that captures an image and compares it to another image
<p>Basically, I want to automate something. I would capture a 100x50 picture of a certain button, and have a script that takes a picture of the same area with the same size, and then compares the two pictures to see if they are different. If they are different, it would do nothing, if they are similar +/- a certain amount, it would then click it.</p>

<p>I have the screen capture kind of worked out, I just don't know how to compare them with PIL. I have done a lot of googling without success.</p>
