I am trying to create a hotkey (Windows+`) to dismiss Windows 10 notifications. Normally when a notification pops up from the Action Center you can hit Windows+Shift+V to focus on the notification, and then Delete to dismiss it. I want to have Windows+' do this combination for me. I have the following script, which works sometimes, but often it will lose focus after the first key combination, and the Delete will be entered into a different program. How can I make sure to hold focus on the notification throughout the script?
Code: Select all
#`::
Send, #+v
Sleep, 2000
Send, {Delete}
return