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

Usage

  • pip install botpapy
  • follow tutorial and documentation
  • happy programming

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.7.tar.gz (8.5 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.7-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file botpapy-0.9.7.tar.gz.

File metadata

  • Download URL: botpapy-0.9.7.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for botpapy-0.9.7.tar.gz
Algorithm Hash digest
SHA256 d3f5ca967b0b49d47b31707d152671cc8c2941ea3663c143d8a062ed81ec18b0
MD5 145e40532583a324f50d855041fadf2f
BLAKE2b-256 df7eda389aea45e1c342982c633190bf00ab77db5d392210474c82525bef3729

See more details on using hashes here.

File details

Details for the file botpapy-0.9.7-py3-none-any.whl.

File metadata

  • Download URL: botpapy-0.9.7-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for botpapy-0.9.7-py3-none-any.whl
Algorithm Hash digest
SHA256 cc1ab0d38f0818029d34e0b1b4e17d4a4229b31f77ecbaf01aaa4343c078dc43
MD5 c0fe1f8e4d8fe4de30cfc73adcfdfaae
BLAKE2b-256 af9415436d1a460ca1f83e7859a2284a9571e87594489335babed2b1fa8ed8b8

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