加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
test.py 1.44 KB
一键复制 编辑 原始数据 按行查看 历史
李文龙 提交于 2024-11-11 22:01 . 优化看板,silk脚本
import sys
import time
from libs.action import WebDriverAction
from libs.game import Game
from libs.image import ImageTool
from libs.log import Log
from libs.movement import Movement
from libs.scheduler_v2 import SchedulerV2
from libs.task_helper import TaskHelper
from libs.trade_helper import TradeHelper
from libs.window import AdsWindow
from silk_slug_3450 import make_rope
# scheduler = SchedulerV2()
# task_id = scheduler.get_task_id(1, 'silk_slug_3450')
# last_finish_tiem = scheduler.get_last_finish_time(task_id)
# print(last_finish_tiem)
# for user_id in [
# 4, 8, 11 ,12 ,13, 14, 15, 16, 21, 22, 23, 24, 25, 26, 27, 28, 29
# , 138, 101
# ]:
# TaskHelper(user_id).silk_slug(2783)
# for user_id in [
# 1, 2, 3
# ]:
# TaskHelper(user_id).silk_slug(3450)
#
TaskHelper(105).add_task('collect.py', 0, False, False)
TaskHelper(101).add_task('collect.py', 0, False, False)
sys.exit()
# print(SchedulerV2().list_running_windows())
# sys.exit()
user_id = 13
log = Log(user_id)
driver = AdsWindow(user_id).open(False)
game = Game(driver, user_id)
action = WebDriverAction(driver)
movement = Movement(driver)
image_tool = ImageTool(driver)
trade_helper = TradeHelper(driver, user_id)
game.enter_game()
tex_loc = action.goto_textile_station()
make_rope(tex_loc)
sys.exit()
# accounts = config.get_accounts()
#
# for user_id in accounts:
# if config.is_vip(user_id):
# TaskHelper(user_id).stone()
# TaskHelper(user_id).wine()
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化