diff --git a/script/apps.py b/script/apps.py index 6683b47..8681df9 100644 --- a/script/apps.py +++ b/script/apps.py @@ -113,6 +113,11 @@ class KuaishouLite(_App): _exec(rule, lambda : self.device.swipe_up(120, 80), "看视频中") print("看视频任务完成") + def read_book(self, rule): + print("开始看书任务...") + _exec(rule, lambda : self.device.swipe_left(300, 100), "看书中") + print("看书任务完成") + class TomatoListen(_App): def __init__(self, device): _App.__init__(self, "番茄畅听") diff --git a/script/main.py b/script/main.py index c4ff88d..2ac5872 100644 --- a/script/main.py +++ b/script/main.py @@ -19,13 +19,15 @@ def main(): try: - wikoHi70m = WikoHi70m('3URNU24803102309') + # 3URNU24803102309 192.168.8.138:5555 + wikoHi70m = WikoHi70m('192.168.8.138:5555') # apps._exec(apps.Rule.count(500, 5, 2), lambda : app_custom(wikoHi70m), "任务执行中") # 快手 # kuaishouLite = apps.KuaishouLite(wikoHi70m) - # kuaishouLite.watch_video(apps.Rule.count(500, 10, 2)) + # kuaishouLite.watch_video(apps.Rule.count(500, 12, 2)) + # kuaishouLite.read_book(apps.Rule.count(1000, 5, 2)) # 抖音 # douyinLite = apps.DouyinLite(wikoHi70m) @@ -39,16 +41,17 @@ def main(): # 头条 # toutiaoLite = apps.ToutiaoLite(wikoHi70m) - # toutiaoLite.watch_ad(apps.Rule.count(500, 10, 2)) + # toutiaoLite.watch_video(apps.Rule.count(500, 8, 2)) + # toutiaoLite.watch_ad(apps.Rule.count(500, 45, 2)) # 番茄畅听 # tomatoListen = apps.TomatoListen(wikoHi70m) # tomatoListen.read_book(apps.Rule.count(1000, 5, 2)) - # tomatoListen.watch_video(apps.Rule.count(500, 10, 2)) + # tomatoListen.watch_video(apps.Rule.count(500, 12, 3)) # 番茄小说 - tomatoFiction = apps.TomatoFiction(wikoHi70m) - tomatoFiction.read_book(apps.Rule.count(1000, 5, 2)) + # tomatoFiction = apps.TomatoFiction(wikoHi70m) + # tomatoFiction.read_book(apps.Rule.count(1000, 5, 2)) # tomatoFiction.watch_video(apps.Rule.count(500, 10, 2)) # 任务完成锁屏