Tuesday, January 4, 2011

Screen shot in windows

import ImageGrab


a=ImageGrab.grab()
a.mode
x, y=a.size
st=a.tostring()

ImageGrab.grab().save('screenshot.jpg')
a.save('screenshot.jpg')


# print screen in windows aka screenshot

No comments:

Post a Comment