Просмотр исходного кода

把中控里面的set_window_position_and_size这个函数的代码注释
不再进行窗口大小的调整

dongguoliang месяцев назад: 4
Родитель
Сommit
d28b95fa5f
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      tools/emulator/emulator.py

+ 2 - 2
tools/emulator/emulator.py

@@ -225,12 +225,12 @@ class Emulator:
         in_row = int((pos_index - 1) / max_column) + 1
         x = int(width * (in_column - 1))
         y = int(height * (in_row - 1))
-        Utils.set_window_position_and_size(emulator_hwnd, x, y, width, height)
+        # Utils.set_window_position_and_size(emulator_hwnd, x, y, width, height)
         time.sleep(2)
         for _ in range(retries):
             current_x, current_y, current_width, current_height = Utils.get_window_position_and_size(emulator_hwnd)
             if current_x == x and current_y == y and current_width == width and current_height == height:
                 return True
             time.sleep(2)
-            Utils.set_window_position_and_size(emulator_hwnd, x, y, width, height)
+            # Utils.set_window_position_and_size(emulator_hwnd, x, y, width, height)
         raise Exception(f"Failed to set window position and size after {retries} retries.")