What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » find out exact text of someone's message.. (something like that)

find out exact text of someone's message.. (something like that)
Author: Message:
foaly
Senior Member
****

Avatar

Posts: 718
Reputation: 20
38 / Male / Flag
Joined: Jul 2006
RE: find out exact text of someone's message.. (something like that)
quote:
Originally posted by ash44455666
Thanks foaly :)
So if I wanted to set variable link1, link2 or link3 to what they provided, I could use something like this?

code:
var link1 = "No link set";
var link2 = "No link set";
var link3 = "No link set;
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind) {
    if(Origin != Messenger.MyName) {
        if (sMessage.charAt(0) == '!') {
        if(sMessage.charAt(1) == '!') {
            return sMessage; }
         else {
            var parts is sMessage.split(" "); }}
    if (parts[0] == !set) {
       if (parts[1] == link1) {
          link1 = parts[2]; }
    else if (parts[1] == link2) {
          link2 = parts[2]; }
    else if (parts[1] == link3) {
          link3 = parts[2]; }}}}


yes that should work... although the words you recieve should be in quotations like:
parts[1] == "link1"

This post was edited on 08-31-2007 at 10:45 PM by foaly.
08-31-2007 10:41 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
find out exact text of someone's message.. (something like that) - by ash44455666 on 08-31-2007 at 09:17 PM
RE: find out exact text of someone's message.. (something like that) - by foaly on 08-31-2007 at 10:20 PM
RE: find out exact text of someone's message.. (something like that) - by ash44455666 on 08-31-2007 at 10:39 PM
RE: find out exact text of someone's message.. (something like that) - by foaly on 08-31-2007 at 10:41 PM
RE: find out exact text of someone's message.. (something like that) - by ash44455666 on 08-31-2007 at 10:53 PM
RE: find out exact text of someone's message.. (something like that) - by ash44455666 on 08-31-2007 at 11:24 PM
RE: find out exact text of someone's message.. (something like that) - by matty on 08-31-2007 at 11:27 PM
RE: find out exact text of someone's message.. (something like that) - by ash44455666 on 08-31-2007 at 11:32 PM
RE: find out exact text of someone's message.. (something like that) - by Matti on 09-01-2007 at 10:05 AM
RE: find out exact text of someone's message.. (something like that) - by ash44455666 on 09-01-2007 at 07:05 PM
RE: find out exact text of someone's message.. (something like that) - by Matti on 09-02-2007 at 09:22 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On