Skip to main content

Automation with Computer Vision for Python

Project description

ok-script

This project aims to provide a universal framework for developing automation tool for PC/Android games, running in windows, emulator, or physical Android Phone. Currently still working in progress, there is a working

Showcase

docs/img_showcase.png

Example Usage

Basically you only need to write the Tasks and Scenes, the autoui framework will do all the heavy lifting. genshin/main.py

# Defining game scenes to handle different in-game situations through automated tasks
task_executor.scenes.extend([
    WorldScene(interaction, feature_set),
    StartScene(interaction, feature_set),
    MonthlyCardScene(interaction, feature_set),
    DialogCloseButtonScene(interaction, feature_set),
    DialogChoicesScene(interaction, feature_set),
    DialogPlayingScene(interaction, feature_set),
    BlackDialogScene(interaction, feature_set),
])

# Adding automated tasks for gameplay, such as dialog navigation and item collection
task_executor.tasks.extend([
    AutoPlayDialogTask(interaction, feature_set),  # speeding up the dialogs
    AutoChooseDialogTask(interaction, feature_set),  # choose dialog options
    AutoPickTask(interaction, feature_set),  # pickup items in world scene
    AutoLoginTask(interaction, feature_set),  # auto login and claim rewards
])

Scenes

Tasks

Project Structure

  • autoui: Framework code.
  • genshin: Example Genshin Impact automation project

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ok-script-0.0.9.tar.gz (69.4 kB view hashes)

Uploaded Source

Built Distribution

ok_script-0.0.9-py3-none-any.whl (94.6 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