67 lines
2.6 KiB
Python
67 lines
2.6 KiB
Python
from devices import WikoHi70m
|
|
import apps
|
|
import random
|
|
|
|
def main():
|
|
|
|
# adb_cmd.mobile_unlock()
|
|
|
|
try:
|
|
|
|
# 3URNU24803102309 192.168.8.138:5555
|
|
wikoHi70m = WikoHi70m('3URNU24803102309')
|
|
|
|
func = [
|
|
# 上滑视频
|
|
# lambda : 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)
|
|
# 左滑
|
|
lambda : wikoHi70m.swipe(500 + int(random.uniform(-10, 10)), 1200 + int(random.uniform(-10, 10)), 240 + int(random.uniform(-10, 10)), 1200 + int(random.uniform(-10, 10)), 80),
|
|
|
|
# 左滑(小窗口)
|
|
lambda : wikoHi70m.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)
|
|
# 上滑浏览(小窗口)
|
|
# lambda : 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)
|
|
# 上滑视频(小窗口)
|
|
# lambda : 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)
|
|
]
|
|
apps._exec(apps.Rule.count(1000, 5, 2), func, "任务执行中")
|
|
|
|
# 快手
|
|
# 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() |