From b2f439ee97014df106463edabd890710c817f0d3 Mon Sep 17 00:00:00 2001 From: Enterly <36875936+anthony5301@users.noreply.github.com> Date: Tue, 16 Jan 2024 21:32:19 +0800 Subject: [PATCH] Change reconnect message --- game.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game.py b/game.py index 937b8f5..95878da 100644 --- a/game.py +++ b/game.py @@ -74,7 +74,7 @@ def check_failed_to_connect_window(self) -> bool: print(" Found \"Failed to Connect\" window, trying to exit and reconnect") if reconnect_button := win32gui.FindWindowEx(hwnd, 0, "Button", None): if cancel_button := win32gui.FindWindowEx(hwnd, reconnect_button, "Button", None): - print(f"{win32gui.GetWindowText(cancel_button)} button found.") + print(" Exiting the game.") win32gui.SendMessage(cancel_button, BM_CLICK, 0, 0) return True print(" Cancel button not found.")