|
@@ -122,7 +122,7 @@ class basic_operate:
|
|
|
return ret
|
|
|
ret, pos = waitFindImg(place_img.title, 1, 0)
|
|
|
if ret:
|
|
|
- pcacc_mouse.click(pos[0] + 20, pos[1] + 80)
|
|
|
+ pcacc_mouse.click(pos[0] - 20, pos[1] + 80)
|
|
|
|
|
|
@staticmethod
|
|
|
def backToGame(preTime = 0):
|
|
@@ -234,7 +234,7 @@ def task_return_game():
|
|
|
tryTimes = 3
|
|
|
while tryTimes > 0:
|
|
|
if False == waitFindImg_withBool([place_img.title], 2, 0):
|
|
|
- waitClickImg_noWait([place_img.ico, place_img.ico2], 1, 0)
|
|
|
+ waitClickImg_noWait([place_img.ico, place_img.ico2, place_img.ico3], 1, 0)
|
|
|
myTimeSleep_big()
|
|
|
tryTimes -= 1
|
|
|
if tryTimes == 0:
|
|
@@ -253,17 +253,18 @@ def task_save_compress_pic():
|
|
|
f.write(compressed_data)
|
|
|
|
|
|
def task_close_game():
|
|
|
- subprocess.call(f"taskkill /f /im MuMuPlayer.exe")
|
|
|
+ subprocess.call(f"taskkill /f /im MuMuNxMain.exe")
|
|
|
subprocess.call(f"taskkill /f /im MuMuVMMHeadless.exe")
|
|
|
subprocess.call(f"taskkill /f /im MuMuVMMSVC.exe")
|
|
|
myTimeSleep_big()
|
|
|
|
|
|
def task_start_game(type=0):
|
|
|
isSuccess = True
|
|
|
- path1 = R'C:\\Program Files\\Netease\\MuMuPlayer-12.0\\shell\\MuMuPlayer.exe'
|
|
|
- path2 = R'C:\Program Files\Netease\MuMu Player 12\shell\MuMuPlayer.exe'
|
|
|
+ path1 = R'C:\\Program Files\\Netease\\MuMu Player 12\\nx_main\\MuMuNxMain.exe'
|
|
|
+ path2 = R'C:\Program Files\Netease\MuMu Player 12\shell\MuMuNxMain.exe'
|
|
|
+ param = " -v 0"
|
|
|
if os.path.exists(path1):
|
|
|
- subprocess.Popen(path1)
|
|
|
+ subprocess.Popen(path1 + param)
|
|
|
elif os.path.exists(path2):
|
|
|
subprocess.Popen(path2)
|
|
|
waitClickImg_withBool(gameStart_img.not_upgrade, 20, 10)
|
|
@@ -1751,10 +1752,10 @@ if __name__ == '__main__':
|
|
|
#yys_ocrAuto(check_img.line_orc)
|
|
|
#basic_operate.go_town()
|
|
|
#basic_operate.add_strength()
|
|
|
- task_fightMonster(False, True,False).run()
|
|
|
+ #task_fightMonster(False, True,False).run()
|
|
|
#task_checkHelp().run()
|
|
|
#task_checkStoreRoom().run()
|
|
|
- #task_start_game(1)
|
|
|
+ task_start_game(1)
|
|
|
#check_safe_collect().run()
|
|
|
#task_fight_campion().run()
|
|
|
#task_activity_lianmeng().run()
|
|
@@ -1765,7 +1766,7 @@ if __name__ == '__main__':
|
|
|
#check_buildOrResearch().run()
|
|
|
#task_checkDonata().run()
|
|
|
#task_checkUnionTreasure().run()
|
|
|
- task_checkAdventure2().run()
|
|
|
+ #task_checkAdventure2().run()
|
|
|
#task_collect(1).run()
|
|
|
#task_collect(2).run()
|
|
|
#task_collect(3).run()
|