use Control to delete desktop notification?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
samt
Posts: 62
Joined: 09 Sep 2022, 13:29

use Control to delete desktop notification?

01 Mar 2023, 18:43

I use this script (first script from top, by Malcev) viewtopic.php?f=76&t=76103&hilit=desktop+notification
to detect desktop notifications and their content.
I use if statements to do certain things based on the content of the notification. I'd like to be able to DELETE certain notifications but only using control send, if its possible so that my mouse doesn't interfere with the closing notification process. It would need to do this operation many times so I prefer using a control method if it's possible.

The way to actually delete a desktop notification is: #+v and then delete key. This deletes it, not hides it in the action center.

Maybe it's not possible to controlsend to a desktop notification, or I'm way off but here's most of what I've tried:

Code: Select all

SetTitleMatchMode, 2
                           ; also tried Controlsend,, #+{v}, ahk_class Windows.UI.Core.CoreWindow
ControlSend,, {LWin down}{Shift down}v{LWin up}{Shift up}, ahk_class Windows.UI.Core.CoreWindow 
sleep 120
Controlsend,, {Delete}, ahk_class Windows.UI.Core.CoreWindow
Among similar code I've tried too, but no success.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Bing [Bot], Black_dog, Chunjee, mikeyww and 140 guests