The purpose of this project was to create a way to pop interactive toasts from the command line. I used a WPF application with startup arguments instead of a console application because it is necessary to keep the application open long enough to respond to events of COM activation.
-t [string] Toast Title
-b [string] Toast Body
-p [string] Logo Image (Windows Path)
-silent (If included no audio will be played)
The activator enables the toast to respond to events and is registered with the OS on startup. Currently the buttons are defined in ToastXML.cs The NotificationActivator class can be modified to respond to the button clicks as needed.
It is modeled after this sample:
The application will install a shortcut in the windows startup menu. This is required for COM activation. I used the approach from this well written project:
- MIT License