What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [ help ] Stop script from running on both msn's

[ help ] Stop script from running on both msn's
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: [ help ] Stop script from running on both msn's
quote:
Originally posted by CarlosHero
Ah sorry if you misunderstood me, what I meant to say was how would I make the script only run on the account the command was received on. Say i was signed in on 2 seperate account without needing to know the email. Like how would I add it to this

code:
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message,MsgKind){
     if(Message.indexOf("[read]")>0){
         sendstatus(ChatWnd);
         return Message.substr(0,Message.indexOf("[read"));
     }

Would this work?

code:
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message,MsgKind){
    if(Origin!=Messenger.MyName){                    // If the receive message isn't send by you
     if(Message.indexOf("[read]")>0){
         sendstatus(ChatWnd);
         return Message.substr(0,Message.indexOf("[read"));
     }

}

js code:
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message,MsgKind){
    if(Origin!=Messenger.MyName){                    // If the receive message isn't send by you
        if(Message.indexOf("[read]")>0){
            sendstatus(ChatWnd);
            return Message.substr(0,Message.indexOf("[read"));
         }
>>>    }<<<
}

You missed the highlighted }
10-29-2009 04:59 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[ help ] Stop script from running on both msn's - by CarlosHero on 10-29-2009 at 02:37 PM
RE: [ help ] Stop script from running on both msn's - by Spunky on 10-29-2009 at 03:04 PM
RE: [ help ] Stop script from running on both msn's - by matty on 10-29-2009 at 03:09 PM
RE: [ help ] Stop script from running on both msn's - by CarlosHero on 10-29-2009 at 03:18 PM
RE: [ help ] Stop script from running on both msn's - by tribbium on 10-29-2009 at 03:38 PM
RE: [ help ] Stop script from running on both msn's - by CarlosHero on 10-29-2009 at 03:50 PM
RE: [ help ] Stop script from running on both msn's - by matty on 10-29-2009 at 03:58 PM
RE: [ help ] Stop script from running on both msn's - by CarlosHero on 10-29-2009 at 04:45 PM
RE: [ help ] Stop script from running on both msn's - by matty on 10-29-2009 at 04:59 PM
RE: [ help ] Stop script from running on both msn's - by CarlosHero on 10-29-2009 at 05:11 PM
RE: [ help ] Stop script from running on both msn's - by matty on 10-29-2009 at 08:24 PM
RE: [ help ] Stop script from running on both msn's - by CarlosHero on 10-31-2009 at 11:25 AM
RE: [ help ] Stop script from running on both msn's - by CookieRevised on 10-31-2009 at 11:48 AM
RE: [ help ] Stop script from running on both msn's - by CarlosHero on 10-31-2009 at 12:03 PM
RE: [ help ] Stop script from running on both msn's - by CookieRevised on 10-31-2009 at 12:16 PM
RE: [ help ] Stop script from running on both msn's - by CarlosHero on 10-31-2009 at 12:25 PM
RE: [ help ] Stop script from running on both msn's - by matty on 11-02-2009 at 02:23 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