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
js code:
var bEnabled = true;

function OnEvent_Initialize () {
    if ( Messenger.MyStatus < STATUS_INVISIBLE ) return false;
    if ( Messenger.MyEmail !== 'johndoe@hotmail.com' ) {
        bEnabled = false;
    }
}

function OnEvent_SigninReady () {
    OnEvent_Initialize ();
}

Then before doing anything check the variable bEnabled

js code:
function OnEvent_ChatWndReceiveMessage ( ... ) {
    if ( bEnabled === true ) {
        // ... do things here
    }
}

This post was edited on 10-29-2009 at 03:11 PM by matty.
10-29-2009 03:09 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