Files
claudetools/.claude/scripts/notify.ps1
Mike Swanson 9e09f4735e sync: auto-sync from DESKTOP-0O8A1RL at 2026-05-13 07:59:31
Author: Mike Swanson
Machine: DESKTOP-0O8A1RL
Timestamp: 2026-05-13 07:59:31
2026-05-13 07:59:31 -07:00

11 lines
707 B
PowerShell

param(
[string]$Title = "ClaudeTools",
[string]$Message = ""
)
$xml = [Windows.Data.Xml.Dom.XmlDocument, Windows.Data.Xml.Dom, ContentType=WindowsRuntime]::new()
$escaped = [System.Security.SecurityElement]::Escape($Message)
$xml.LoadXml("<toast><visual><binding template=`"ToastGeneric`"><text>$Title</text><text>$escaped</text></binding></visual></toast>")
$toast = [Windows.UI.Notifications.ToastNotification, Windows.UI.Notifications, ContentType=WindowsRuntime]::new($xml)
[Windows.UI.Notifications.ToastNotificationManager, Windows.UI.Notifications, ContentType=WindowsRuntime]::CreateToastNotifier('{1AC14E77-02E7-4E5D-B744-2EB1AE5198B7}\WindowsPowerShell\v1.0\powershell.exe').Show($toast)