13fe87da99
- WindowActivator:ALT 模拟 + AttachThreadInput + SetForegroundWindow 组合技抢前台 - save 抓的前台句柄经 PipeMessage/ToastRequest 一路带到 toast - 点击 toast 主体激活目标窗口后再关闭 - Win32 互操作用 LibraryImport(AOT 友好) - 新增 acttest 自测子命令
27 lines
719 B
C#
27 lines
719 B
C#
namespace Notify.Models;
|
|
|
|
/// <summary>
|
|
/// 一次弹窗请求(后续由 hook / named pipe 投递)
|
|
/// </summary>
|
|
public sealed class ToastRequest
|
|
{
|
|
public required string Title { get; init; }
|
|
|
|
public required string Message { get; init; }
|
|
|
|
/// <summary>
|
|
/// true = 需要输入(黄色边框),false = 任务完成(橙色边框)
|
|
/// </summary>
|
|
public bool InputMode { get; init; }
|
|
|
|
/// <summary>
|
|
/// true = 常驻:不自动消失,只能点击 / ✕ 关闭
|
|
/// </summary>
|
|
public bool Sticky { get; init; }
|
|
|
|
/// <summary>
|
|
/// 点击 toast 主体时要激活的窗口句柄,0 表示不激活
|
|
/// </summary>
|
|
public long TargetHwnd { get; init; }
|
|
}
|