Shoutbox

[Request] Simple script - 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: [Request] Simple script (/showthread.php?tid=77874)

[Request] Simple script by epower on 09-30-2007 at 02:48 PM

hello, i need help...

I want a script that would send a message every time a conversation is created... like when you open a conversation window with a contact "hello" is sent, and same when a contact opens the window and sends you a message...

thanks


RE: [Request] Simple script by Chris4 on 09-30-2007 at 03:08 PM

Pretty sure this can be done with Answering Machine Plus. :grin:


RE: [Request] Simple script by markee on 09-30-2007 at 03:15 PM

code:
function OnEvent_ChatWndCreated(ChatWnd){
    ChatWnd.SendMessage("hello");
}

This does exactly what you are after.  If you wanted a different message then change hello.  To implement this then go into the Messenger Plus! Live preferences > General > Scripts > Create New... > Give it a name you want > OK > paste the code in the large box > OK > your script is now running.
RE: [Request] Simple script by epower on 09-30-2007 at 03:33 PM

Hey markee thanks.. i tried to make it on my own but i didnt get the part at line 2 :D thanks !!! appreciate it.

btw chris4 i know about answering machine plus, but thats not what i want.

Edit: u missed a "S" on message

function OnEvent_ChatWndCreated(ChatWnd){
    ChatWnd.SendMesage("hello");
}


RE: [Request] Simple script by markee on 09-30-2007 at 03:49 PM

quote:
Originally posted by epower
Hey markee thanks.. i tried to make it on my own but i didnt get the part at line 2 :D thanks !!! appreciate it.

btw chris4 i know about answering machine plus, but thats not what i want.

Edit: u missed a "S" on message

function OnEvent_ChatWndCreated(ChatWnd){
    ChatWnd.SendMesage("hello");
}
I'm sorry about that, I've been doing a huge assignment all day and also sometimes my keyboard doesn't like to record me pressing the button so the two together aren't a good combination.  I'm glad I could help you and stick in there with the scripting.