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 hashes)
Built Distribution
pybotter-0.1.1-py3-none-any.whl
(123.5 kB
view hashes)