Welcome to MLink Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
887 views
in Technique[技术] by (71.8m points)

powershell - How to programmatically start Shell_TrayWnd and NotifyIconOverflowWindow?

I am currently trying to refresh my tray icons to remove orphaned tray icons after killing processes. I found solutions at Can you send a signal to Windows Explorer to make it refresh the systray icons? and Refresh System tray Icons but I realized they only work if Shell_TrayWnd and NotifyIconOverflowWindow have already been started. They can be manually started by clicking on the show hidden icons button in the task bar. The problem is that they do not automatically start when booting Windows, so I have to manually click the button, which defeats the purpose of automating the system tray icon refresh in my scenario.

enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to MLink Developer Q&A Community for programmer and developer-Open, Learning and Share
...