feat: 没测过的MAA调度方案

This commit is contained in:
DLmaster361
2025-08-09 01:50:38 +08:00
parent ba1fcd1f26
commit 9a87a62353
73 changed files with 4081 additions and 358 deletions

View File

@@ -303,7 +303,7 @@ class _SystemHandler:
win32gui.EnumWindows(callback, window_info)
return window_info
def kill_process(self, path: Path) -> None:
async def kill_process(self, path: Path) -> None:
"""
根据路径中止进程
@@ -312,7 +312,7 @@ class _SystemHandler:
logger.info(f"开始中止进程: {path}")
for pid in self.search_pids(path):
for pid in await self.search_pids(path):
killprocess = subprocess.Popen(
f"taskkill /F /T /PID {pid}",
shell=True,
@@ -322,7 +322,7 @@ class _SystemHandler:
logger.success(f"进程已中止: {path}")
def search_pids(self, path: Path) -> list:
async def search_pids(self, path: Path) -> list:
"""
根据路径查找进程PID