|
@@ -243,7 +243,7 @@ def find_window_pos(title):
|
|
|
return False, None
|
|
|
|
|
|
def find_yys_pos():
|
|
|
- return find_window_pos('MuMu安卓设备12')
|
|
|
+ return find_window_pos('MuMu安卓设备')
|
|
|
|
|
|
def get_first_single_digit(string):
|
|
|
pattern = r'\d' # 匹配一个独立的单个数字
|
|
@@ -283,10 +283,10 @@ def ocrAuto(gamestr, positions):
|
|
|
return lineStr
|
|
|
|
|
|
def yys_ocrAuto(positions):
|
|
|
- return ocrAuto('MuMu安卓设备12', positions)
|
|
|
+ return ocrAuto('MuMu安卓设备', positions)
|
|
|
|
|
|
def yys_dragAuto(positions, isQuick=False):
|
|
|
- return dragAuto('MuMu安卓设备12', positions, isQuick)
|
|
|
+ return dragAuto('MuMu安卓设备', positions, isQuick)
|
|
|
|
|
|
def getRegion(gamestr, region, isWidth):
|
|
|
tmpRet, tmpPos = find_window_pos(gamestr)
|
|
@@ -297,7 +297,7 @@ def getRegion(gamestr, region, isWidth):
|
|
|
else:
|
|
|
return (region[0] + tmpPos[0], region[1] + tmpPos[1], region[2] + tmpPos[0], region[3] + tmpPos[1])
|
|
|
def game_region():
|
|
|
- tmpRet, tmpPos = find_window_pos('MuMu安卓设备12',)
|
|
|
+ tmpRet, tmpPos = find_window_pos('MuMu安卓设备',)
|
|
|
return tmpRet, tmpPos
|
|
|
|
|
|
def save_game_screen(fileHeader=""):
|
|
@@ -334,7 +334,7 @@ def stop_recording():
|
|
|
|
|
|
|
|
|
def yys_getRegion(region, isWidth= False):
|
|
|
- return getRegion('MuMu安卓设备12', region, isWidth)
|
|
|
+ return getRegion('MuMu安卓设备', region, isWidth)
|
|
|
|
|
|
def click_waitimg(pos_x,pos_y,img):
|
|
|
retry_times = 3
|