Shoutbox

important script help - 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: important script help (/showthread.php?tid=77409)

important script help by jollyscripts on 09-12-2007 at 06:30 PM

in part of my script i had

ChatWnd.Msgbox ("hi") but this dont work in msn after i tried it

i need to be able to receive any message from someone, and have that message sent straight to someone else.
i need it to start with "auto: then the message
any help?

i dont need it in a pop up box , as long as it sends to the other person!


RE: important script help by Spunky on 09-12-2007 at 06:43 PM

Check your PM for the reply I sent you


RE: important script help by Matti on 09-12-2007 at 06:45 PM

I won't give you simple copy-paste code because I think it's better for you to learn it yourself. :)

You'll first need an event to capture the message received. Then, you'll need to compare the Origin to all contact names in your list. When you have a match, you use the e-mail address of that contact to open a chat window and send a message.

So, you need an OnEvent_ChatWndReceiveMessage, which first checks that the message isn't yours by comparing Origin to Messenger.MyName. Then, you need to loop through ChatWnd.Contacts and check the name of each contact in the conversation. If you have a match, you store the contact object and break the loop. Then, you open a chat with "var oChatWnd = Messenger.OpenChat(Contact.Email)" and then you use "oChatWnd.SendMessage('Message')" to send the message. :)

Give it a try! ;)