Python Library to automate tasks with template matching in (non-visible) windows
Project description
Python Library to automate tasks with template matching in (non-visible) windows
heavily inspired by Botfather
uses win32gui -> only works on windows
Features
- List window titles
- Select window by name/title
- if multiple found -> choice dialogue
- Taking Screenshots of window
- Use python cv2 wrapper for template matching
- Send mouse/keyboard events to window
- Isolate color ranges for better template matching
Documentation
General
- Some windows don't take input the way this is programmed (new Windows "Apps", Explorer etc.)
- Some windows might not generate any image while minimized:
- move them to a second desktop in windows
⊞ Win + Tab - keep them "open" there
- move them to a second desktop in windows
- If there are only black squares as pictures try a different layer variable for checkWindowNames
- This is (not yet) tested on a bigger scale:
- definitely not full functionality for controls
- might have bugs
- performance might not be optimal
Dependencies
pip install numpy opencv-python Pillow pywin32- hope nothing is missing
Usage
git submodule add -b master https://github.com/Alpel99/botpapygit submodule init- update:
git submodule update --remote
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
botpapy-0.9.6.tar.gz
(8.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
botpapy-0.9.6-py3-none-any.whl
(10.5 kB
view details)
File details
Details for the file botpapy-0.9.6.tar.gz.
File metadata
- Download URL: botpapy-0.9.6.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
881541117320d9557f538ec267e1c3bdef03131c61b39a28d9dfa3acad5fecad
|
|
| MD5 |
8a7f9c738b9328be454115e3fad23dc1
|
|
| BLAKE2b-256 |
208ca16c8a11f7172a3b063250f32817b3218e5f2ed0a0efb77986fc36b2e44b
|
File details
Details for the file botpapy-0.9.6-py3-none-any.whl.
File metadata
- Download URL: botpapy-0.9.6-py3-none-any.whl
- Upload date:
- Size: 10.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86abfc0d7d6e1d8a7a27507828126e7ffda42cba6b875f3e768ec25cbe69877b
|
|
| MD5 |
f2c850471196ef867b0179efb9821213
|
|
| BLAKE2b-256 |
4979cd362c95471905cddf6a3d2da2f5ad996bd43daf2b9fd253b90f7dd20c7b
|