How to clear Windows Notifications from Action Center?

Page 2 of 2 FirstFirst 12
  1. Paul Black's Avatar
    Posts : 12,133
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #11

    Hello @x509,

    x509 said:
    Just curious about the words with background shading. How do you set that background? Or is it automatic in the forum software?

    You can put C & /C with [ ] around each for the text you want shaded.

    I hope this helps.
      My Computer


  2. Posts : 1,284
    X
       #12

    Good thought. But it didn't work for me.
    Paul Black said:
    Hello @TairikuOkami,
    > How to Turn On or Off Notifications from Apps and Senders in Windows 10
    The .reg files to turn ON and OFF PushNotifications is . . .
    OFF [ as per the Tutorial ]
    Code:
    
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\PushNotifications]
    "ToastEnabled"=dword:00000000
    
    ON [ as per the Tutorial ]
    Code:
    
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\PushNotifications]
    "ToastEnabled"=dword:00000001
    
    Which equates into the Batch Script . . .
    OFF
    Code:
    
    Reg Add "HKCU\Software\Microsoft\Windows\CurrentVersion\PushNotifications" /v ToastEnabled /t REG_DWORD /d 0 /f
    
    ON
    Code:
    
    Reg Add "HKCU\Software\Microsoft\Windows\CurrentVersion\PushNotifications" /v ToastEnabled /t REG_DWORD /d 1 /f
    
      My Computer

  3. Paul Black's Avatar
    Posts : 12,133
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #13

    Hello @margrave55,

    margrave55 said:
    Good thought. But it didn't work for me.

    What did NOT work for you?
      My Computer

  4. TairikuOkami's Avatar
    Posts : 4,652
    Windows Home Dev 21H1 x64
    Thread Starter
       #14

    Callender said:
    %LocalAppData%\Microsoft\Windows\ActionCenterCache
    Thanks for the tip, unfortunately, it is empty.
    Attached Thumbnails Attached Thumbnails How to clear Windows Notifications from Action Center?-capture_03292021_120041.jpg  
      My Computer

  5. das10's Avatar
    Posts : 2,759
    Win 10 pro 20H2
       #15

    Using a Powershell script as an alternative to Nircmd or AutoHotKey to send keys ( similar to the method pointed out in your second link ) can work but just like those methods, it shows inconsistent behaviour in the sense that when sending the following key sequence on my system eg,

    start ms-actioncenter:
    SHIFT+TAB
    SHIFT+TAB
    SPACE

    if there are no notifications to clear, then the script will move to the next button and activate it.

    So the script only works consistently if there will "always" be notifications to clear and hence only if the "Clear All Notifications" Button will be present when running the script.

    Also, on my System, I need to send two SHIFT+TABS to reach the "Clear" button after activating Action Center, but I have seen it require from 1 to 3 SHIFT+TABS depending on what else is present in the lower half of the notification area.

    Powershell script test clear Notifications in Action Center
    Code:
    # 1 start the action center
    # 2 prepare to send keys
    # 3 send keys
    # optional-Start-Sleep commands in between send keys in case script works too fast and skips instructions
    # Adjust no. of ("+{TAB}") required
    # there need to be notifications present or the next tabbed button gets activated
    
    start ms-actioncenter:
    Add-Type -AssemblyName System.Windows.Forms
    [System.Windows.Forms.SendKeys]::SendWait("+{TAB}")
    [System.Windows.Forms.SendKeys]::SendWait("+{TAB}")
    [System.Windows.Forms.SendKeys]::SendWait(" ")
    # remove the Start-Sleep if everything works
    Start-Sleep -MilliSeconds 1000
    [System.Windows.Forms.SendKeys]::SendWait("{ESC}")
    Clearly it is not a proper solution, but just an idea about how to go about attempting it using native Windows commands.

    As a side note, there is no Sendkeys method for the WIN key, but it can work using the mod shown here:
    PowerShell/WinKeys.ps1 at master . stefanstranger/PowerShell . GitHub
      My Computer


 
Page 2 of 2 FirstFirst 12

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 02:48.
Find Us




Windows 10 Forums