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:
Bram
Full Member
***

Avatar
here I am

Posts: 131
Reputation: 6
37 / Male / Flag
Joined: Apr 2005
O.P. IDEA: Scripts should be able to activate / disable them on a per user basis
Because on PCs which are shared with verious users right not the script is loaded for everyone, which could cause unwanted problems. What do you think?
06-26-2006 06:38 PM
Profile PM Web Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: IDEA: Scripts should be able to activate / disable them on a per user basis
Maybe....

It could be interesting, but on the other hand it cuold also be very usefull that scripts are loaded globally...

Anyways, if something like that is done it would probably require a total reprogramming of how the engine works. So I doubt this will be done anytime soon (unless Patchou already is working on it).

A way for still doing something like this, but not breaking all the existing scripts and ways of loading, would maybe be to implement the same 'system' as the Custom Sound feature. This too is by default globally, but you can have a private library too....

I guess only Patchou would be able to truely give a decent reply on this...
.-= A 'frrrrrrrituurrr' for Wacky =-.
06-26-2006 07:03 PM
Profile PM Find Quote Report
Salem
Senior Member
****

Avatar

Posts: 769
Reputation: 16
37 / Male / Flag
Joined: May 2004
RE: IDEA: Scripts should be able to activate / disable them on a per user basis
quote:
Originally posted by Bram
Because on PCs which are shared with verious users right not the script is loaded for everyone, which could cause unwanted problems. What do you think?


I didn't come across the fact the script status was for all Messenger accounts, as i'm just about the only user using this computer.

But yes, i think this should be done. Makes MP!L more customizable

~Salem(@)
[Image: salem874.smart.jpg][Image: card.png]
Was i Helpful?[/url]
06-27-2006 07:42 AM
Profile PM Find Quote Report
Patchou
Messenger Plus! Creator
*****

Avatar

Posts: 8607
Reputation: 201
43 / Male / Flag
Joined: Apr 2002
RE: IDEA: Scripts should be able to activate / disable them on a per user basis
This was not done because of the way the old plugins used to work. Plugins were enabled/disabled on a per user basis and it proved to be a bad idea and caused various problems.

Scripts are aware of user change, they can provide their own options to enable/disable themselves in different accounts.
[Image: signature2.gif]
06-27-2006 10:48 PM
Profile PM Web Find Quote Report
Mr. Bougo
Junior Member
**


Posts: 51
33 / Male / –
Joined: Jun 2006
RE: IDEA: Scripts should be able to activate / disable them on a per user basis
And what about adding a script object with a property like "enabled" ?

So the users who want to enable/disable the scripts on a per user basis can code this feature... And the script object would be useful in other situations, i think...
06-28-2006 05:01 AM
Profile PM Find Quote Report
the andyman
Junior Member
**

Avatar
Windows Live Fanatic

Posts: 92
Reputation: 4
– / Male / Flag
Joined: Apr 2005
RE: RE: IDEA: Scripts should be able to activate / disable them on a per user basis
quote:
Originally posted by Patchou
This was not done because of the way the old plugins used to work. Plugins were enabled/disabled on a per user basis and it proved to be a bad idea and caused various problems.

Scripts are aware of user change, they can provide their own options to enable/disable themselves in different accounts.

It always seemed to work for me and I'd like to see it return too ( http://shoutbox.menthix.net/showthread.php?tid=61...d=682626#pid682626 )

The only scripts I've seen so far that do anything like this are ones which allow different settings of the functions per account - I haven't seen one yet (including in the official database) that allows itself to be enabled/disabled per account.
07-01-2006 08:41 PM
Profile E-Mail PM Web Find Quote Report
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 »


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