如何向操作中心发送通知? [英] How to send notifications to the Action Center?

查看:52
本文介绍了如何向操作中心发送通知?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只找到了这个,似乎没有与操作中心相关.

I have only found this, which seems not to be related to the Action Center.

我想有一种使用 PowerShell 发送通知的简单方法,但我似乎无法找到它.

I guess there is a simple way to send a notification with PowerShell, but I seem incapable to find it.

推荐答案

显示在操作中心的通知往往是用户在屏幕上时没有点击离开的 Toast 通知.

The notifications that show up in the action center tend to be Toast Notifications that the user didn't click away while they were on screen.

例如我插入了一张空白 DVD,有人问我想用它做什么,但没有点击它,然后它会显示在操作中心的通知列表中.

e.g. I insert a blank dvd, get a toast asking what I want to do with it but don't click it, it then shows up in the list of notifications in the Action Center.

我不确定如何绕过 toast 步骤.

I'm not sure of a way to bypass the toast step.

所以你可能想要的是 Toasts(也许是静音?),它会在操作中心结束.

So what you probably want to have are Toasts (maybe silent?) which will wind up in the action center.

我编写了一个 powershell 模块来显示这些 Toast,BurntToast(或查看 GitHub repo 的说明和示例等)

I wrote a powershell module for displaying these Toasts, BurntToast (or check out the GitHub repo for instructions and examples, etc.)

可以按原样随意使用该模块,或者将其拆开以了解它的工作原理并执行您自己的实现.有很多示例和文档说明如何在 C# 中执行此操作和/或现代应用程序,既然您知道要搜索的关键字.

Feel free to use the module as is, or rip it apart to figure out how it works and do your own implementation. There are plenty of examples and documentation of how to do this in C# and/or modern applications too, now that you know the keyword to search for.

这篇关于如何向操作中心发送通知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆