Shoutbox

Auto Send message on Conversation open - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: Auto Send message on Conversation open (/showthread.php?tid=70013)

Auto Send message on Conversation open by Def669 on 12-28-2006 at 10:51 PM

I'm just a little confused on how to start this off (i'm new to scripting :$)
What i need is an example of a script that will message a contact when you open a conversation with them.

EG:
When you open a conversation it will automatically say "Hi." or "Hi <contacts name here>"

Thanks.


RE: Auto Send message on Conversation open by deAd on 12-28-2006 at 10:58 PM

code:
function OnEvent_ChatWndCreated(pChatWnd){
pChatWnd.SendMessage("Hi.");
}

RE: Auto Send message on Conversation open by Def669 on 12-28-2006 at 10:59 PM

Thanks so much. (Y)