import random
targetX="498"
targetY="335"
count=0
def utok():
click("1372278608978.png")
if exists("1372280914930.png", 0.5):
exit()
else:
if exists("1372277271552.png", 0.5) or exists("1372278898924.png", 0.5):
time.sleep(random.uniform(0.2, 0.6))
click("1372278851129.png")
else:
click("1372278963975.png")
wait("1372279043731.png")
time.sleep(random.uniform(0.2, 0.5))
click("1372278851129.png")
global count
count=count+1
def utoceni():
global count
count = 0
while count < 20:
click("1372277963474.png")
click("1372282694397.png")
time.sleep(random.uniform(0.5, 1.2))
utok()
def prvniutok():
global count
count = 0
while count < 1:
click("1372277963474.png")
time.sleep(random.uniform(0.5, 1))
paste("1372280783030.png", targetX)
time.sleep(0.1)
paste(targetY)
time.sleep(random.uniform(0.7, 1.5))
utok()
prvniutok()
utoceni()
感谢您的回答,Dominik。 :)
答案 0 :(得分:0)
第9行,如果文件存在,则调用“exit()”。也许它正在寻找的文件存在,所以它退出程序。