New
#11
Hello @x509,
You can put C & /C with [ ] around each for the text you want shaded.
I hope this helps.
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
Clearly it is not a proper solution, but just an idea about how to go about attempting it using native Windows commands.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}")
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