Skip to main content

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
  • 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/botpapy
  • git submodule init
  • update: git submodule update --remote

Project details


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

botpapy-0.9.6-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

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

Hashes for botpapy-0.9.6.tar.gz
Algorithm Hash digest
SHA256 881541117320d9557f538ec267e1c3bdef03131c61b39a28d9dfa3acad5fecad
MD5 8a7f9c738b9328be454115e3fad23dc1
BLAKE2b-256 208ca16c8a11f7172a3b063250f32817b3218e5f2ed0a0efb77986fc36b2e44b

See more details on using hashes here.

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

Hashes for botpapy-0.9.6-py3-none-any.whl
Algorithm Hash digest
SHA256 86abfc0d7d6e1d8a7a27507828126e7ffda42cba6b875f3e768ec25cbe69877b
MD5 f2c850471196ef867b0179efb9821213
BLAKE2b-256 4979cd362c95471905cddf6a3d2da2f5ad996bd43daf2b9fd253b90f7dd20c7b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page