个人将需要的部分通过ai进行一部分汉化供个人使用,原仓库链接点此查看
Install-Module -Name BurntToast有关完整详细信息和说明,请参阅 PowerShell 库 。不要忘记设置正确的 执行策略。
从版本界面下载BurntToast.zip,并将其内容解压到$env:userprofile\Documents\WindowsPowerShell\modules\BurntToast(如果这些目录不存在,你可能需要手动创建它们)。
如果你使用的是 PowerShell 6 或更高版本,请解压到$env:userprofile\Documents\PowerShell\Modules\BurntToast。请记得在解压内容之前将zip文件解除锁定。否则zip无法正常解压。 这可以通过下列两种方法完成
- 文件属性
- 右键单击下载的 zip 文件,选择“属性”。
- 在弹出的属性窗口中,查看“安全”或“常规”选项界面下是否有“解除锁定”按钮。
- 如果存在该按钮,点击它即可解除zip的锁定状态。 或使用
- Unblock-File命令。
Get-Item "C:\path\to\your\BurntToast.zip" | Unblock-File
New-BurntToastNotificationNew-BurntToastNotification -AppLogo C:\smile.jpg -Text "Don't forget to smile!",
'Your script ran successfully, celebrate!'New-BurntToastNotification -Text 'WAKE UP!' -Sound 'Alarm2' -SnoozeAndDismiss请注意 :从 v0.5.0 开始,BurntToast 不再支持 Windows 8。
-
- 实现了使用 UniqueIdentifier 与 Remove-BTNotification 函数的功能(在 0.8.4 中部分实现)
-
-
修改:New-BTHeader 的 Header ID 现在是可选的。如果未指定,将自动生成 ID(#125)
- 感谢 @glennsarti
-
增强:现在可以通过 New-BurntToastNotification 函数使用 -HeroImage 参数指定英雄图片(#80)
-
增强:现在可以通过 New-BurntToastNotification 函数使用 -AppId 参数指定 AppIDs
- 感谢 @cedarbaum
-
增强:现在可以在使用 Remove-BTNotification 函数时指定 UniqueIdentifier,而不仅仅是组件标签和组字符串
-
修复:从 Twitch/IRC 获取文本并将其用于 toast 时出现的一些奇怪边缘情况现已解决
- 感谢 @potatoqualitee 和 @vexx32
-
-
- 增加:现在可以通过 New-BTColumn 使用 AdaptiveGroups
-
-
修复:在 0.8.0 中移除的 Toast 别名已恢复
-
弃用:在未来版本 v0.9.0 中将移除 Shoulder Tap cmdlets
-
弃用:在未来版本 v0.9.0 中将移除 New-BTAudio 的 Path 参数
-
-
-
修复:UNC 路径的图片无法加载的问题(#111)
-
增加:可以通过 New-BTImage 的 IgnoreCache 开关强制刷新缓存图片
-
增加:ACTIONABLE NOTIFICATIONS!通过 Submit-BTNotification 和 New-BurntToastNotification 的 ActivatedAction 和 DismissedAction 参数公开
-
-
更多内容请查看完整变更日志
- 请查看 LICENSE 文件
BurntToast通知的默认图片是由Craig Sunter拍摄的照片
- Twitter: @WindosNZ
- Blog: ToastIT.dev


