BalloonTip click event not working
A BalloonTip pop-up appears when outdated upgrades are available. Ideally, clicking on the Balloon Tip would trigger do_upgrade_dialog.
The following should register such a click-event:
Register-ObjectEvent $objNotifyIcon BalloonTipClicked -sourceIdentifier click_event { do_upgrade_dialog } | Out-Null
The above appears to work fine if the application context (System.Windows.Forms.ApplicationContext) is removed from the end of the script.
However removing the context causes other menus and events to stop working reliably.
Hi, would you consider using BurnToast to handle notifications? https://community.chocolatey.org/packages/burnttoast-psmodule
I think it handles clickable buttons on Windows notifications.