-
-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Basic test script does not work #230
Comments
Same here, I haven't seen any articles saying that it no longer works |
Same issue |
Has anyone got it working? |
I wonder if it's to do with this? #233 (comment) |
[void] [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
$objNotifyIcon = New-Object System.Windows.Forms.NotifyIcon
$objNotifyIcon.Icon = [System.Drawing.SystemIcons]::Information
$objNotifyIcon.BalloonTipIcon = "Info"
$objNotifyIcon.BalloonTipText = "Test text"
$objNotifyIcon.BalloonTipTitle = "Test title"
$objNotifyIcon.Visible = $True
$objNotifyIcon.ShowBalloonTip(10000)
Start-Sleep 500
[EDIT] Well... 1h and one stackoverflow [1][2] post later… My issue was caused by modified - %SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe
+ %SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe -NoLogo was what broke [EDIT2] Since it's possible to use a custom
Using this in PS will create a file on desktop with available ID's: Get-StartApps | Format-List | Out-File -FilePath "$HOME\Desktop\BurntToastAppId.txt" After that it's just a matter of finding New-BurntToastNotification -Text 'Yoooo, this is a toast notification... from PowerShell!' -AppId 'Microsoft.AutoGenerated.{C9F392EB-B250-4678-1F0C-F0DEEAEDBECC}' There's also the option of replacing the default one in |
Steps to Reproduce
I read this article https://www.pdq.com/blog/display-toast-notifications-with-powershell-burnt-toast-module/ and wanted to try out this BurntToast
So I opened PowerShell window as Administrator and executed
which resulted with me indulging in these prompt questions
And yet when I run the basic script example from that article
nothing happens
[I am not a programmer, just a small time code tweaker, but I do use some PS1 scripts with great advantage to my modus operandi]
Expected Behavior
No response
Actual Behavior
No response
Experience with Toast
None
Environment data: PowerShell
Environment data: OS
Environment data: BurntToast
Consent to Attribution
The text was updated successfully, but these errors were encountered: