quote:
Originally posted by -dt-
quote:
Originally posted by vikke
This would be hard to implement, because all scripts gets enabled before you sign in, therefor it is impossible. If your script is well-coded, it will save all settings for each user.
Hm not really, it wouldnt be too hard.
Patchou could introduce an option in the scriptInfo.xml called <userLevel> and allow that to be set to global or user. If its global then store it how it currently is but if its set to user then install it into a directory like /scripts/email/scriptname and run it when the user signs in and unload it when that user signs out
and maybe Plus! could even have the option for both levels, and let the user choose when you install the script
This should work, but it would ruin the simplicity about scripts.
Also, you cannot run 2 scripts at the same time with different settings (if it's not programmed that way, some are).
Edit: It's not ridiculous, you don't seem to know anything about how scripts work. Some scripts may need to run when Messenger starts to apply their features. The best solution I've come up with is to create a new object for Messenger Plus!, called Registry or something.
Something like this:
code:
class Registry:
function SaveGlobalSetting(Name, Value);
function LoadGlobal(Name, Default);
function SaveUserSetting(Name, Value);
function LoadUserSetting(Name, Default);