ChocoButler icon indicating copy to clipboard operation
ChocoButler copied to clipboard

BalloonTip click event not working

Open cokelid opened this issue 4 years ago • 1 comments

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.

cokelid avatar Sep 16 '21 20:09 cokelid

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.

splendid25 avatar Apr 21 '22 22:04 splendid25