Skip to main content

A simple library to control windows

Project description

⚠️ Maintenance Notice

This repository is still maintained, but the maintainer has switched to Linux. As a result, while pull requests and bug fixes will be managed, the repository can no longer be tested on Windows. Contributions and testing from the community are highly appreciated.

windows-botify

A simple package to allow mouse and window automation for Windows

Installation

To install the package, run:

pip install windows_botify

Requirements

You will need to use Windows. The package was only tested on Windows 10 but may also work on older or newer versions.

How to Get Started

Currently, only window interactions are supported.

Get Window Screenshot

You can get a screenshot of a window by running:

import windows_botify

img = windows_botify.window.getWindowScreenshot("NAME")

Move Window to Foreground/Background

Move the window to the foreground or minimize it:

import windows_botify

windows_botify.window.moveToForeground("GitHub Desktop")
windows_botify.window.minimizeWindow("GitHub Desktop")

Send Mouse Click

To send a mouse click to a window:

import windows_botify

windows_botify.mouse.ButtonDown("GitHub Desktop", windows_botify.mouse.MouseButton.LEFT)
windows_botify.mouse.ButtonUp("GitHub Desktop", windows_botify.mouse.MouseButton.LEFT)

Documentation

For more detailed documentation, check out our wiki: https://github.com/Cavecake/windows-botify/wiki

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

windows_botify-0.1.1.tar.gz (6.9 kB view details)

Uploaded Source

File details

Details for the file windows_botify-0.1.1.tar.gz.

File metadata

  • Download URL: windows_botify-0.1.1.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.0

File hashes

Hashes for windows_botify-0.1.1.tar.gz
Algorithm Hash digest
SHA256 db87018e715e56d4421c615845450a13b4b1cf6a8f39e825bf3149fd65556007
MD5 695824b41d8b36b66b62f6eb2fc8e9c6
BLAKE2b-256 782701def30a78d7e23ec8a3bbd3df70c9c352de1b83513cfaeea6dd2d1c7735

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