What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » hmm a problem...

hmm a problem...
Author: Message:
uggi
New Member
*


Posts: 11
37 / Male / –
Joined: Jul 2006
O.P. hmm a problem...
when i use the OnEvent_ChatWndReceiveMessage function to send a command to my script, fx. "!popup" it runs the code as normal, but if i send the script to a friend and he runs it and write the same command in a chat window to me, then my script run on both computers.. how can i stop that.. ??

some of my code:

quote:
function OnEvent_ChatWndReceiveMessage(ChatWnd,Origin,Message,MessageKind)
{
    if(MessageKind == 1)
    {
if(Message.substr(0,7) == '!popup ') {
    var naam = Origin.substr(0,16);
    if(Message.substr(7) == '') {
        var Text = "You need to post a message after !popup..";
        ChatWnd.SendMessage(Text);
    } else {
        var Text = Message.substr(7);
        ext = MsgPlus.RemoveFormatCodes(Text);
        MsgPlus.DisplayToast("",Text);
    }
}
    }
}
08-03-2006 05:11 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
hmm a problem... - by uggi on 08-03-2006 at 05:11 PM
RE: hmm a problem... - by rob_botch on 08-04-2006 at 09:29 AM
RE: RE: hmm a problem... - by uggi on 08-04-2006 at 10:14 AM
RE: hmm a problem... - by mlevit on 08-04-2006 at 10:21 AM
RE: hmm a problem... - by RaceProUK on 08-04-2006 at 10:29 AM
RE: hmm a problem... - by uggi on 08-04-2006 at 10:45 AM
RE: hmm a problem... - by RaceProUK on 08-04-2006 at 10:51 AM
RE: RE: hmm a problem... - by uggi on 08-04-2006 at 12:22 PM
RE: hmm a problem... - by RaceProUK on 08-04-2006 at 12:25 PM
RE: RE: hmm a problem... - by uggi on 08-04-2006 at 12:42 PM
RE: hmm a problem... - by mlevit on 08-04-2006 at 12:58 PM
RE: hmm a problem... - by RaceProUK on 08-04-2006 at 01:49 PM
RE: hmm a problem... - by uggi on 08-04-2006 at 02:36 PM
RE: hmm a problem... - by rob_botch on 08-04-2006 at 05:47 PM


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