Losing focus from Windows Action Center

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
blenderfish
Posts: 1
Joined: 05 Aug 2020, 14:00

Losing focus from Windows Action Center

05 Aug 2020, 14:06

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

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: hedehede81, OrangeCat and 298 guests