Hello debeste95
(Cool name!
)
Event handlers, as these are called, are just functions with a specific name that Plus! recognises:
JScript code:
function OnEvent_ChatWndReceiveMessage(ChatWnd,Origin,Message,MessageKind) {
if(Origin !== Messenger.MyName) { // Check if we did not send the message
MsgPlus.DisplayToast("","A contact has said something!");
[whatever you want to do]
}
return Message; // We don't want to do anything with the Message
}
This will display a pop-up message in the bottom-right corner of the screen, titled "Messenger Plus! Live", saying "A contact has said something!"; no sound will be played when displaying the toast and it won't be clickable.