Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/andy-y-li/screenshot

Make a simple screenshot on window via python
https://github.com/andy-y-li/screenshot

Last synced: about 1 month ago
JSON representation

Make a simple screenshot on window via python

Awesome Lists containing this project

README

        

# screenshot
Make a simple screenshot on window via python

- **Usage:**
```
Usage: python3 screenshot.py target_title images_filepath
```

- **Install python module:**
```
pyhton3 -m pip install pyautogui pygetwindow pywinauto
```
- **Load DLL error:**
```
import win32api
ImportError: DLL Load failed
```
Found the DLL files(pythoncom37.dll, pywintypes37.dll) in the path, it may in other path:
```
C: \Users|xxx\AppData\Local|Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages
```
Copy to "C:IWindows\System32"