From 5875c1ed2c8673f5034aaf10c4ae6133210e0dd7 Mon Sep 17 00:00:00 2001 From: Serge <5920850+seerge@users.noreply.github.com> Date: Tue, 6 Feb 2024 18:21:26 +0100 Subject: [PATCH] Narrator support for toast notifications https://github.com/seerge/g-helper/issues/2035 --- app/Helpers/ToastForm.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/Helpers/ToastForm.cs b/app/Helpers/ToastForm.cs index a96cc509..6e8a449f 100644 --- a/app/Helpers/ToastForm.cs +++ b/app/Helpers/ToastForm.cs @@ -156,6 +156,12 @@ namespace GHelper.Helpers Show(); timer.Start(); + + Program.settingsForm.AccessibilityObject.RaiseAutomationNotification( + System.Windows.Forms.Automation.AutomationNotificationKind.ActionCompleted, + System.Windows.Forms.Automation.AutomationNotificationProcessing.MostRecent, + text); + }); }