Not only wait for game window to be created but also to be shown

This commit is contained in:
Soreepeong 2021-11-12 23:11:12 +09:00
parent fee9d27435
commit 97475f24b9

View file

@ -198,7 +198,7 @@ HWND try_find_game_window() {
DWORD pid; DWORD pid;
GetWindowThreadProcessId(hwnd, &pid); GetWindowThreadProcessId(hwnd, &pid);
if (pid == GetCurrentProcessId()) if (pid == GetCurrentProcessId() && IsWindowVisible(hwnd))
break; break;
} }
return hwnd; return hwnd;