automation.cs支持不同条件查找windows,前端依然限制只通过句柄查找

This commit is contained in:
fofolee
2025-01-18 15:58:16 +08:00
parent a8e0fe9e8f
commit 3b49adcd59
3 changed files with 110 additions and 16 deletions

View File

@@ -20,7 +20,9 @@ async function runAutomation(
const args = [];
if (window) {
args.push("-window", window);
args.push("-method", "handle", "-window", window);
} else {
args.push("-method", "active");
}
args.push("-type", type);