From 9324fb1c9c78c8e4621af731ac1808e977226271 Mon Sep 17 00:00:00 2001 From: Ivan Hanloth Date: Wed, 9 Apr 2025 21:09:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9C=AA=E9=87=8A=E6=94=BECO?= =?UTF-8?q?M=E7=8E=AF=E5=A2=83=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main/core/tools.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main/core/tools.py b/main/core/tools.py index b4c6f84..199b278 100644 --- a/main/core/tools.py +++ b/main/core/tools.py @@ -112,6 +112,12 @@ def changeMute(hwnd,flag=1): break except Exception as e: print("tools-changeMute: ",e) + finally: + # 释放 COM 环境 + try: + pythoncom.CoUninitialize() + except: + pass def remove_duplicates(input_list: list): """