03-06-2026, 12:32 PM
`ActionTriggers.Stop`.
// script "ActionTriggers cancellation.cs"
using Au.Triggers;
ActionTriggers Triggers = new();
//this thread will stop triggers after 5 s
_ = Task.Run(() => {
5.s();
Triggers.Stop();
});
Triggers.Hotkey["Ctrl+K"] = o => { print.it(o); };
Triggers.RunThread();
print.it("stopped");Quote:inside a windows service to respond on third party windows etcIf it's a true Windows service, triggers won't work in its process, because services run in non-interactive session 0.

How to terminate ActionTriggers right way