Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/andy-y-li/screenshot
- Owner: andy-y-li
- License: gpl-3.0
- Created: 2024-08-18T03:45:56.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-08-18T04:07:07.000Z (4 months ago)
- Last Synced: 2024-08-18T05:21:55.874Z (4 months ago)
- Language: Python
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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"