What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » IDEA: Scripts should be able to activate / disable them on a per user basis

1 votes - 4 average   IDEA: Scripts should be able to activate / disable them on a per user basis
Author: Message:
Squelettor
Junior Member
**

Avatar

Posts: 49
Joined: Jul 2006
RE: IDEA: Scripts should be able to activate / disable them on a per user basis
What you can do :

In all your script :

on the top :
code:
var email_authorized = new Array("example@truc.fr");
var authorized;


in the OnEvent_Signin (creat it if don't exist)

code:
function OnEvent_Signin(Email)
{
      authorized = false;
      for (var i =0; i<email_authorized.length;i++)
      {
            if (email_authorized[i] ==Messenger.MyEmail)
            {
                   authorized = true:
                   break;
            }
            return;
      }

       //real code of the OnEvent_Signin...
}


and in all the function OnEvent, on the top :

code:
function OnEvent_XXXXXX(....)
{
             if (!authorized)
            {
                   return;
            }

           //real code of the OnEvent_XXXX...
}


If you have a lot of script, It can be long but you just have make this juste 1 on time ^^

Squelettor
07-26-2006 01:40 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
IDEA: Scripts should be able to activate / disable them on a per user basis - by Bram on 06-26-2006 at 06:38 PM
RE: IDEA: Scripts should be able to activate / disable them on a per user basis - by CookieRevised on 06-26-2006 at 07:03 PM
RE: IDEA: Scripts should be able to activate / disable them on a per user basis - by Salem on 06-27-2006 at 07:42 AM
RE: IDEA: Scripts should be able to activate / disable them on a per user basis - by Patchou on 06-27-2006 at 10:48 PM
RE: IDEA: Scripts should be able to activate / disable them on a per user basis - by Mr. Bougo on 06-28-2006 at 05:01 AM
RE: RE: IDEA: Scripts should be able to activate / disable them on a per user basis - by the andyman on 07-01-2006 at 08:41 PM
RE: IDEA: Scripts should be able to activate / disable them on a per user basis - by Squelettor on 07-26-2006 at 01:40 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