python 2.7
库:PyUserInput模块
3.使用Total Control把手机连接到电脑。
4.打开支付宝蚂蚁森林(调开所有好友界面)
5.
import pymouse,os,sys
import time
import win32api
from pymouse import PyMouse
from pykeyboard import PyKeyboard
m = PyMouse()
k = PyKeyboard()
#m.click(200,350,1,1)
#time.sleep(1)
#m.click(75,923,1,1)
#m.move(36,300)
#m.click(100,100,1,1)
#for i in range(1,4):
# k.press_key(k.page_down_key)
# k.release_key(k.page_down_key)
# class snl:
# def s(self):
# for j in range(1,8):
# for i in range(1,19):
# m.click(40+(i-1)*20,236+(j-1)*25,2,1)
# class snl2:
# def cf(self):
# i=1
# while i <= 7:
# m.move(30, 250)
# m.click(30, 250 + 65 * (i - 1), 1, 1)
# snl.s()
# m.click(27, 113, 1, 1)
# i = i + 1
# k.press_key(k.page_down_key)
# k.release_key(k.page_down_key)
time.sleep(1)
for k1 in range(1,11):
m1=1
while m1 <= 7:
m.move(30, 250)
m.click(30, 250 + 65 * (m1 - 1), 1, 1)
time.sleep(1)
# snl.s()
for j in range(1, 6):
for i in range(1, 19):
m.click(40 + (i - 1) * 20, 236 + (j - 1) * 30, 2, 1)
time.sleep(0.1)
time.sleep(1)
m.click(27, 113, 1, 1)
time.sleep(1)
m1 = m1 + 1
k.press_key(k.page_down_key)
k.release_key(k.page_down_key)
time.sleep(4)