项目地址:github网址
软件截图:
目前版本仅支持御魂副本,可以同时开多个号一起刷,部分代码如下:
def YuHunTwoWindow(LogUI):
"""
自动御魂,双开模式
"""
imgs = loadImgs()
PassTime=1
while True:
LogUI.insert(END, '开始挑战')
logging.debug('开始挑战')
isStageOnePass=False
# 开始挑战
while isStageOnePass==False:
screen=GetScreenShot()
for i in ['tiaozhan']:
obj = imgs[i]
pos = GetLocation(obj, screen)
if not pos == None:
isStageOnePass=True
Click(pos)
time.sleep(0.1)
logging.debug('结算奖励')
isStageTwoPass=False
clickCount = 0
# 结算奖励 双开计算两次
while isStageTwoPass==False:
screen = GetScreenShot()
for i in ['end1', 'end2']:
obj = imgs[i]
pos = GetLocation(obj, screen)
logging.debug('检测结算目标图像')
if not pos == None:
logging.info('结算点击'+str(clickCount)+'次')
Click(pos)
if clickCount == 4:
isStageTwoPass=True
clickCount += 1
isStageThreePass=False
invitedParter = False
clickCount=0
while isStageThreePass==False:
screen = GetScreenShot()
if invitedParter == True:
break
logging.debug('第一次邀请队友并自动组队')
# 邀请队友
for i in ['queding', 'jieshou1']:
obj = imgs[i]
pos = GetLocation(obj, screen)
if not pos == None:
clickCount += 1
Click(pos)
if clickCount == 2:
invitedParter = True
isStageThreePass=True
continue
logging.info('已通关副本'+str(PassTime)+'次')
PassTime+=1
LogUI.insert(END, '已经通关'+str(PassTime)+'次')
有感兴趣的欢迎点star哦,欢迎提issue。