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
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)
Built Distribution
ok_script-0.0.9-py3-none-any.whl
(94.6 kB
view hashes)
Close
Hashes for ok_script-0.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e69ae8d951d1ecbe7e9e0bb2473f4bccc3e695ea67b7c07355134be7c54c0ab0 |
|
MD5 | 8e81135f22554fb9a2bce5c25135ab39 |
|
BLAKE2b-256 | 441eba8d9ca4eb19a3f04642bab43d36f8467cd34f6c28cac7200c747a212a08 |