快手增加看书任务
This commit is contained in:
@@ -113,6 +113,11 @@ class KuaishouLite(_App):
|
|||||||
_exec(rule, lambda : self.device.swipe_up(120, 80), "看视频中")
|
_exec(rule, lambda : self.device.swipe_up(120, 80), "看视频中")
|
||||||
print("看视频任务完成")
|
print("看视频任务完成")
|
||||||
|
|
||||||
|
def read_book(self, rule):
|
||||||
|
print("开始看书任务...")
|
||||||
|
_exec(rule, lambda : self.device.swipe_left(300, 100), "看书中")
|
||||||
|
print("看书任务完成")
|
||||||
|
|
||||||
class TomatoListen(_App):
|
class TomatoListen(_App):
|
||||||
def __init__(self, device):
|
def __init__(self, device):
|
||||||
_App.__init__(self, "番茄畅听")
|
_App.__init__(self, "番茄畅听")
|
||||||
|
@@ -19,13 +19,15 @@ def main():
|
|||||||
|
|
||||||
try:
|
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), "任务执行中")
|
# apps._exec(apps.Rule.count(500, 5, 2), lambda : app_custom(wikoHi70m), "任务执行中")
|
||||||
|
|
||||||
# 快手
|
# 快手
|
||||||
# kuaishouLite = apps.KuaishouLite(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)
|
# douyinLite = apps.DouyinLite(wikoHi70m)
|
||||||
@@ -39,16 +41,17 @@ def main():
|
|||||||
|
|
||||||
# 头条
|
# 头条
|
||||||
# toutiaoLite = apps.ToutiaoLite(wikoHi70m)
|
# 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 = apps.TomatoListen(wikoHi70m)
|
||||||
# tomatoListen.read_book(apps.Rule.count(1000, 5, 2))
|
# 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 = apps.TomatoFiction(wikoHi70m)
|
||||||
tomatoFiction.read_book(apps.Rule.count(1000, 5, 2))
|
# tomatoFiction.read_book(apps.Rule.count(1000, 5, 2))
|
||||||
# tomatoFiction.watch_video(apps.Rule.count(500, 10, 2))
|
# tomatoFiction.watch_video(apps.Rule.count(500, 10, 2))
|
||||||
|
|
||||||
# 任务完成锁屏
|
# 任务完成锁屏
|
||||||
|
Reference in New Issue
Block a user