|
@@ -253,7 +253,7 @@ def get_first_single_digit(string):
|
|
|
else:
|
|
|
return None
|
|
|
|
|
|
-def dragAuto(gamestr, positions):
|
|
|
+def dragAuto(gamestr, positions, isQuick=False):
|
|
|
tmpRet, tmpPos = find_window_pos(gamestr)
|
|
|
if tmpRet == False:
|
|
|
return False
|
|
@@ -262,7 +262,7 @@ def dragAuto(gamestr, positions):
|
|
|
y1 = positions[1] + tmpPos[1] + random.randint(-20, 20)
|
|
|
x2 = positions[2] + tmpPos[0] + random.randint(-20, 20)
|
|
|
y2 = positions[3] + tmpPos[1] + random.randint(-20, 20)
|
|
|
- pcacc_mouse.drag_from(x1, y1, x2, y2)
|
|
|
+ pcacc_mouse.drag_from(x1, y1, x2, y2, isQuick)
|
|
|
return True
|
|
|
|
|
|
def ocrAuto(gamestr, positions):
|
|
@@ -285,8 +285,8 @@ def ocrAuto(gamestr, positions):
|
|
|
def yys_ocrAuto(positions):
|
|
|
return ocrAuto('Mumu模拟器12', positions)
|
|
|
|
|
|
-def yys_dragAuto(positions):
|
|
|
- return dragAuto('Mumu模拟器12', positions)
|
|
|
+def yys_dragAuto(positions, isQuick=False):
|
|
|
+ return dragAuto('Mumu模拟器12', positions, isQuick)
|
|
|
|
|
|
def getRegion(gamestr, region, isWidth):
|
|
|
tmpRet, tmpPos = find_window_pos(gamestr)
|