feat: 点击 toast 激活原窗口(P1a)

- WindowActivator:ALT 模拟 + AttachThreadInput + SetForegroundWindow 组合技抢前台
- save 抓的前台句柄经 PipeMessage/ToastRequest 一路带到 toast
- 点击 toast 主体激活目标窗口后再关闭
- Win32 互操作用 LibraryImport(AOT 友好)
- 新增 acttest 自测子命令
This commit is contained in:
2026-06-22 14:48:11 +08:00
parent 37fc06e274
commit 13fe87da99
9 changed files with 176 additions and 4 deletions
+5
View File
@@ -18,4 +18,9 @@ public sealed class ToastRequest
/// true = 常驻:不自动消失,只能点击 / ✕ 关闭
/// </summary>
public bool Sticky { get; init; }
/// <summary>
/// 点击 toast 主体时要激活的窗口句柄,0 表示不激活
/// </summary>
public long TargetHwnd { get; init; }
}