|
|
@@ -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.")
|