You could do this by writing a script using the function
code:
MsgPlus.LogEvent(Origin,Description,Icon);
Where Origin, Description and Icon are pre-defined variables. I'm sure there are a lot of people who would be willing to help you customize the script to your specific needs.