feat: 点击 toast 激活原窗口(P1a)
- WindowActivator:ALT 模拟 + AttachThreadInput + SetForegroundWindow 组合技抢前台 - save 抓的前台句柄经 PipeMessage/ToastRequest 一路带到 toast - 点击 toast 主体激活目标窗口后再关闭 - Win32 互操作用 LibraryImport(AOT 友好) - 新增 acttest 自测子命令
This commit is contained in:
@@ -18,4 +18,9 @@ public sealed class ToastRequest
|
||||
/// true = 常驻:不自动消失,只能点击 / ✕ 关闭
|
||||
/// </summary>
|
||||
public bool Sticky { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 点击 toast 主体时要激活的窗口句柄,0 表示不激活
|
||||
/// </summary>
|
||||
public long TargetHwnd { get; init; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user