This module is for doing automation tasks on Windows 10 or above
Project description
Pybotter: Program Automation Python Library
Using Python Currently under development
Installation
Run the following command to install:
pip install pybotter
Usage
A template provided in the package for simplification.
from pybotter import PyBot
# Change path of the system
#os.chdir(os.path.dirname(os.path.abspath(__file__)))
# (**) Type the exact name of the window
window_name = "Title of the target window"
# Show list of windows
#PyBot.list_windows()
# Debug mode: show screen shot of the target window
debug = None
#debug = 'debug'
# (**) Initialise the bot
bot = PyBot(window_name, debug)
# (**) Add needle images first
@bot.variables
def add_variables():
#bot.add_image("IMAGE_NAME", "IMAGE_PATH")
pass
# (**) Add bot actions that run during the main loop
@bot.mainloop
def bot_run():
pass
# Resize the target window
#bot.resize(640,380)
# (**) Initiate adding variables, MUST RUN THIS BEFORE THE MAIN LOOP
add_variables()
# (**) Run the bot
bot_run()
Sound effects obtained from https://www.zapsplat.com
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
pybotter-0.1.1.tar.gz
(123.7 kB
view details)
Built Distribution
pybotter-0.1.1-py3-none-any.whl
(123.5 kB
view details)
File details
Details for the file pybotter-0.1.1.tar.gz
.
File metadata
- Download URL: pybotter-0.1.1.tar.gz
- Upload date:
- Size: 123.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | caf6d7409156cae0e2f4c9e06c610e68f75025bb949039c5cd1389bffb83dc17 |
|
MD5 | 368327459314d52a2754c5709bf61f23 |
|
BLAKE2b-256 | b1a4e298858585e80fe97aca6dfe7690b9653cad93ea522f4d1ce5b2f001bccd |
File details
Details for the file pybotter-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: pybotter-0.1.1-py3-none-any.whl
- Upload date:
- Size: 123.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31c4acb4751ee258916d2b0a216a40bfac76e088e59732370bc87f4714929364 |
|
MD5 | 08d1ced48b993f249b47b1f993189c78 |
|
BLAKE2b-256 | b8de20eb418f2876281ae6154eb5ef03403fffa0acfab30c81bea6053332ae6b |