diff --git a/LunaTranslator/LunaTranslator/myutils/hwnd.py b/LunaTranslator/LunaTranslator/myutils/hwnd.py index 2b91824f..691a0ec9 100644 --- a/LunaTranslator/LunaTranslator/myutils/hwnd.py +++ b/LunaTranslator/LunaTranslator/myutils/hwnd.py @@ -91,26 +91,6 @@ def hwndscalerate(hwnd): return rate -def getpidhwndfirst(pid): - try: - hwnds = list() - - def get_all_hwnd(hwnd, _): - if ( - windows.IsWindow(hwnd) - and windows.IsWindowEnabled(hwnd) - and windows.IsWindowVisible(hwnd) - ): - if windows.GetWindowThreadProcessId(hwnd) == pid: - hwnds.append((hwnd)) - - windows.EnumWindows(get_all_hwnd, 0) - return hwnds[0] - except: - return 0 - - - def getprocesslist(): pids = windows.EnumProcesses()