Files
earn_gold/script/main.py
2024-12-29 23:54:26 +08:00

65 lines
2.3 KiB
Python

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:
# 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, 12, 2))
# kuaishouLite.read_book(apps.Rule.count(1000, 5, 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_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, 12, 3))
# 番茄小说
# 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()