Skip to main content

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)

Uploaded Source

Built Distribution

pybotter-0.1.1-py3-none-any.whl (123.5 kB view hashes)

Uploaded Python 3

Supported by

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