Chris Hengge wrote:
> Because I dont know any other way to capture the screen? (In my mind
> using print screen would be universal) =P
The print screen button doesn't do anything.
It generates a keycode just like any other button on the keyboard.
Windows captures this keypress and interprets it as you wanting a
screenshot.
There is no inherent operation tied to this specific button that creates
a screenshot.
So yeah, you could probably go the route of generating a printscreen
keypress, but
there are much easier ways to do that.
For example,
Install PIL,
then do
>>> import ImageGrab
>>> ImageGrab.grab().save('temp.jpg')
That's all there is to it.
_______________________________________________
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor