Files
notify/Notify/Ipc/PipeMessage.cs
T
chuan 13fe87da99 feat: 点击 toast 激活原窗口(P1a)
- WindowActivator:ALT 模拟 + AttachThreadInput + SetForegroundWindow 组合技抢前台
- save 抓的前台句柄经 PipeMessage/ToastRequest 一路带到 toast
- 点击 toast 主体激活目标窗口后再关闭
- Win32 互操作用 LibraryImport(AOT 友好)
- 新增 acttest 自测子命令
2026-06-22 14:48:11 +08:00

24 lines
641 B
C#

namespace Notify.Ipc;
/// <summary>
/// 瘦客户端经命名管道投递给 Host 的一条弹窗请求
/// </summary>
public sealed class PipeMessage
{
public string Title { get; set; } = "";
public string Message { get; set; } = "";
// true = 需要输入(青色边框)
public bool InputMode { get; set; }
// true = 常驻,不自动消失
public bool Sticky { get; set; }
// 触发该通知的会话 id,便于 Host 后续按会话激活窗口
public string? SessionId { get; set; }
// 点击 toast 时要激活的目标窗口句柄,0 表示无
public long TargetHwnd { get; set; }
}