-A powershell script that can create a notification. This working script can be found Here
-A Batch script to call said script
-For my powershell script to also start a program when it is clicked on
I know it's possible. I don't know how. Note that I'm using Windows 10.
Here's an updated version of what I have so far:
[void] $objNotifyIcon = New-Object System.Windows.Forms.NotifyIcon $objNotifyIcon.Icon = "icon.ico" $objNotifyIcon.BalloonTipIcon = "None" $objNotifyIcon.BalloonTipText = "Body text or description" $objNotifyIcon.BalloonTipTitle = "Title" $objNotifyIcon.Visible = $True register-objectevent $objNotifyIcon BalloonTipClicked BalloonClicked_event - Action Start-Process -FilePath "C:\users\Public\ITCMD\Toggler\Toggle.bat" $objNotifyIcon.ShowBalloonTip(10000)
Note that what I have right now does not let me start a program, and also leaves the icon in the system ^ tray, and it cannot be removed without restart.(big problem).