from devices import WikoHi70m import apps import random def app_custom(device): # 上滑视频 device.swipe(240 + int(random.uniform(-10, 10)), 1200 + int(random.uniform(-10, 10)), 240 + int(random.uniform(-10, 10)), 1100 + int(random.uniform(-10, 10)), 50) # 上滑浏览(小窗口) # device.swipe(450 + int(random.uniform(-10, 10)), 400 + int(random.uniform(-10, 10)), 450 + int(random.uniform(-10, 10)), 200 + int(random.uniform(-10, 10)), 300) # 上滑视频(小窗口) device.swipe(450 + int(random.uniform(-10, 10)), 400 + int(random.uniform(-10, 10)), 450 + int(random.uniform(-10, 10)), 200 + int(random.uniform(-10, 10)), 50) # 左滑(小窗口) # device.swipe(600 + int(random.uniform(-10, 10)), 400 + int(random.uniform(-10, 10)), 400 + int(random.uniform(-10, 10)), 400 + int(random.uniform(-10, 10)), 80) def main(): # adb_cmd.mobile_unlock() try: wikoHi70m = WikoHi70m('3URNU24803102309') # 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)) # 抖音 # douyinLite = apps.DouyinLite(wikoHi70m) # 视频红包 # douyinLite.watch_video(apps.Rule.count(1000, 7, 2)) # 支付宝 # alipay = apps.Alipay(wikoHi70m) # 视频红包 # alipay.watch_video(apps.Rule.count(1000, 7, 2)) # 头条 # toutiaoLite = apps.ToutiaoLite(wikoHi70m) # toutiaoLite.watch_ad(apps.Rule.count(500, 10, 2)) # 番茄畅听 # tomatoListen = apps.TomatoListen(wikoHi70m) # tomatoListen.read_book(apps.Rule.count(1000, 5, 2)) # tomatoListen.watch_video(apps.Rule.count(500, 10, 2)) # 番茄小说 tomatoFiction = apps.TomatoFiction(wikoHi70m) tomatoFiction.read_book(apps.Rule.count(1000, 5, 2)) # tomatoFiction.watch_video(apps.Rule.count(500, 10, 2)) # 任务完成锁屏 wikoHi70m.lock() except KeyboardInterrupt: print("程序被用户中断") if __name__ == "__main__": main()