发表于: 2018-01-07 22:56:46

2 846


今天完成的事:

学习了一些MongoDB的知识,编写了一个王者荣耀刷金币的py文件

使用的逍遥模拟器,设置的分辨率为840*320,选择的冒险模式的关卡是稷下战场,程序比较简单,调试坐标的时候有点麻烦,程序如下

import os

import time
def touch(point):
    os.system('adb shell input tap %d %d'%(point[0],point[1]))
point1=(410,13)
point5=point2=(430,13
point4=point3=(380,280)
while True:
    touch(point1)
    time.sleep(0.2)
    touch(point2)
    time.sleep(0.5)
    touch(point3)
    time.sleep(6)
    touch(point4)
    time.sleep(0.3)
    touch(point5)
逍遥模拟器使用之前,先连接 :

adb connect 127.0.0.1:21503

明天计划的事:

学习MongoDB,学习使用pymongo 的基本用法

收获:学习了连接安卓模拟器的方法


返回列表 返回列表
评论

    分享到