|
@@ -213,7 +213,7 @@ def task_close_game():
|
|
subprocess.call(f"taskkill /f /im MuMuVMMSVC.exe")
|
|
subprocess.call(f"taskkill /f /im MuMuVMMSVC.exe")
|
|
myTimeSleep_big()
|
|
myTimeSleep_big()
|
|
|
|
|
|
-def task_start_game():
|
|
|
|
|
|
+def task_start_game(type=0):
|
|
isSuccess = True
|
|
isSuccess = True
|
|
path1 = R'C:\\Program Files\\Netease\\MuMuPlayer-12.0\\shell\\MuMuPlayer.exe'
|
|
path1 = R'C:\\Program Files\\Netease\\MuMuPlayer-12.0\\shell\\MuMuPlayer.exe'
|
|
path2 = R'C:\Program Files\Netease\MuMu Player 12\shell\MuMuPlayer.exe'
|
|
path2 = R'C:\Program Files\Netease\MuMu Player 12\shell\MuMuPlayer.exe'
|
|
@@ -222,8 +222,14 @@ def task_start_game():
|
|
elif os.path.exists(path2):
|
|
elif os.path.exists(path2):
|
|
subprocess.Popen(path2)
|
|
subprocess.Popen(path2)
|
|
waitClickImg_withBool(gameStart_img.not_upgrade, 20, 10)
|
|
waitClickImg_withBool(gameStart_img.not_upgrade, 20, 10)
|
|
- if waitClickImg_withBool(gameStart_img.ico, 100, 0) == False:
|
|
|
|
- return False
|
|
|
|
|
|
+ if type == 0:
|
|
|
|
+ if waitClickImg_withBool(gameStart_img.ico, 100, 0) == False:
|
|
|
|
+ return False
|
|
|
|
+ else:
|
|
|
|
+ if waitClickImg_withBool(gameStart_img.second_game, 100, 0) == False:
|
|
|
|
+ return False
|
|
|
|
+ if waitClickImg_withBool(gameStart_img.ico, 5, 0) == False:
|
|
|
|
+ return False
|
|
|
|
|
|
waitFindImg_withBool(place_img.gameIn, 10, 20)
|
|
waitFindImg_withBool(place_img.gameIn, 10, 20)
|
|
basic_operate.go_town()
|
|
basic_operate.go_town()
|
|
@@ -1001,11 +1007,11 @@ class task_activity_lianmeng(dongri_task):
|
|
down_tryTimes = 3
|
|
down_tryTimes = 3
|
|
while down_tryTimes > 0:
|
|
while down_tryTimes > 0:
|
|
down_tryTimes -= 1
|
|
down_tryTimes -= 1
|
|
- if waitClickImg_noWait_withBool((special_activity_img.shili_120, special_activity_img.shili_860_2, special_activity_img.shili_430), 1, 0.5, True) == True:
|
|
|
|
|
|
+ if waitClickImg_noWait_withBool((special_activity_img.shili_120_2, special_activity_img.shili_860_2, special_activity_img.shili_430), 1, 0.5, True) == True:
|
|
if waitClickImg_noWait_withBool(special_activity_img.accept_task, 2, 1) == False:
|
|
if waitClickImg_noWait_withBool(special_activity_img.accept_task, 2, 1) == False:
|
|
return False
|
|
return False
|
|
break
|
|
break
|
|
- elif waitFindImg_withBool(special_activity_img.shili, 1, 0.5) == True:
|
|
|
|
|
|
+ elif waitFindImg_withBool(special_activity_img.shili_2, 1, 0.5) == True:
|
|
save_game_screen()
|
|
save_game_screen()
|
|
|
|
|
|
yys_dragAuto(special_activity_img.move_down)
|
|
yys_dragAuto(special_activity_img.move_down)
|
|
@@ -1285,7 +1291,8 @@ if __name__ == '__main__':
|
|
#task_fightMonster(False, False,False).run()
|
|
#task_fightMonster(False, False,False).run()
|
|
#task_checkHelp().run()
|
|
#task_checkHelp().run()
|
|
#task_checkStoreRoom().run()
|
|
#task_checkStoreRoom().run()
|
|
- task_activity_lianmeng().run()
|
|
|
|
|
|
+ task_start_game(0)
|
|
|
|
+ #task_activity_lianmeng().run()
|
|
#task_fight_yongbing(True).run()
|
|
#task_fight_yongbing(True).run()
|
|
#task_collect([4,3,2,1]).run()
|
|
#task_collect([4,3,2,1]).run()
|
|
#task_train("upgrade").run()
|
|
#task_train("upgrade").run()
|