When I using pyautogui.screenshot('my_screenshot.png'), the program will crash sometimes with the errorn 22 Invalid argument or errorn 13 Permission denied. But this line can run successfully in most of the time, could you give me some idea?
Do I need to delete the previous 'my_screenshot.png' before screenshot('my_screenshot.png')? But during my using screenshot, I find screenshot() can save the latest picture even if the same name file exist.
When I using pyautogui.screenshot('my_screenshot.png'), the program will crash sometimes with the errorn 22 Invalid argument or errorn 13 Permission denied. But this line can run successfully in most of the time, could you give me some idea?
Do I need to delete the previous 'my_screenshot.png' before screenshot('my_screenshot.png')? But during my using screenshot, I find screenshot() can save the latest picture even if the same name file exist.
Looking forward to your reply, thanks a lot.