On 03/05/17 00:28, Cameron Simpson wrote:
>> And so forth? I assume you mean
>>
>> MMDD.png format?
>>
>> You should read about the strftime function in the time
>
> Further to this, I would also advocate that you consider writing the
> timestamp
> from largest unit to smallest unit, like
On Tue, May 2, 2017 at 6:09 PM, Michael C
wrote:
> screenshot.save("\test\missed.png")
You probably know that "\t" represents a tab in a string literal, but
there's something about working with a path that causes people to
overlook this. Windows won't overlook it.
On 03May2017 00:01, Alan Gauld wrote:
On 02/05/17 19:09, Michael C wrote:
1. How to name the file with time stamp. e.g. 05012017.png and so forth.
And so forth? I assume you mean
MMDD.png format?
You should read about the strftime function in the time
(and
On 02/05/17 19:09, Michael C wrote:
> from PIL import Image
> from PIL import ImageGrab
>
> screenshot = ImageGrab.grab()
> screenshot.show()
> screenshot.save("\test\missed.png")
>
> This is my current code, using Python Image Library!
You should probably investigate Pillow, I believe
from PIL import Image
from PIL import ImageGrab
# takes the screenshot
screenshot = ImageGrab.grab()
# display the screenshot
screenshot.show()
# save the screenshot
screenshot.save("\test\missed.png")
This is my current code, using Python Image Library!
What I would like to get help with is: