What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Is there a script to.....?

Is there a script to.....?
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: RE: Is there a script to.....?
quote:
Originally posted by 134jimbodude
That should work but i haven't tested it
Try not to post scripts/snippets if you didn't tested them....

Posting not working scripts can confuse people even more and people willing to learn scripting will learn the wrong things, etc.

(you actually pointed that out to me once :p;)))


quote:
Originally posted by Jesus
lol thought he meant after a specified amount of time:P
Before making scripts for people, always make sure you make what is been asked for, or first ask for more details.
eg: "# key and = key".

-------------------------------------------------------

PS: Jesus (or anyone): you also might wanna read this post regarding timers:
quote:
Originally posted by CookieRevised in "[release] Who's online"

Extremely important note:

Each and every script that uses timers to manipulate or check user related stuff should check if the same user is still signed in when the timer triggers!!!

It should check if it is still the same current user who is signed in and thus only perform the action if the user is the same as the one which started the timer.

Failing todo this will cause many unwanted errors and script behaviours when:
- the user signs out when a timer is still active
- a new user signs in before the timer is triggered and the action when the timer triggers is something like blocking a contact, changing status, retrieving contacts, etc...

All this because timers do not reset and aren't deleted when somebody signs out or when somebody else signs in.


Extremely many scripts make these faults...

Another, and sometimes better/more elegant, solution for the above problem (that is: if possible for the particular script) is to explicitly delete the timer when the user signs out.
Although 134jimbodude's code wouldn't work, he did take this in account as he checked the email address of the signed in user.

-------------------------------------------------------

Also another thing (or actually the same thing as above if you think about it) which makes this script not so strait forward as you might think is that scripts keep running and will not be restarted when other users sign in.

This makes that you should take in account that different users can set different sign out times. In other words, this script should save and load its setting (the set time) in a user specific way (ps: don't use the user's email address for this but rather the user's userid because of security reasons).

This post was edited on 09-15-2006 at 11:38 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
09-15-2006 11:18 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Is there a script to.....? - by lu_benja on 09-13-2006 at 06:39 PM
RE: Is there a script to.....? - by Jesus on 09-13-2006 at 06:40 PM
RE: Is there a script to.....? - by lu_benja on 09-13-2006 at 06:43 PM
RE: Is there a script to.....? - by Jimbo on 09-13-2006 at 06:51 PM
RE: Is there a script to.....? - by vaccination on 09-13-2006 at 06:54 PM
RE: Is there a script to.....? - by lu_benja on 09-13-2006 at 06:56 PM
RE: Is there a script to.....? - by Ezra on 09-13-2006 at 06:57 PM
RE: RE: Is there a script to.....? - by vaccination on 09-13-2006 at 07:03 PM
RE: Is there a script to.....? - by Jesus on 09-13-2006 at 07:02 PM
RE: Is there a script to.....? - by Jesus on 09-13-2006 at 07:05 PM
RE: Is there a script to.....? - by lu_benja on 09-13-2006 at 07:11 PM
RE: Is there a script to.....? - by vaccination on 09-13-2006 at 07:12 PM
RE: Is there a script to.....? - by lu_benja on 09-14-2006 at 01:46 PM
RE: Is there a script to.....? - by crank on 09-15-2006 at 09:29 AM
RE: RE: Is there a script to.....? - by CookieRevised on 09-15-2006 at 11:18 AM
RE: Is there a script to.....? - by Felu on 09-15-2006 at 12:05 PM
RE: RE: Is there a script to.....? - by Jimbo on 09-15-2006 at 08:07 PM
RE: Is there a script to.....? - by Matti on 09-15-2006 at 12:38 PM
RE: Is there a script to.....? - by Felu on 09-15-2006 at 12:39 PM
RE: Is there a script to.....? - by Matti on 09-15-2006 at 12:44 PM
RE: Is there a script to.....? - by lu_benja on 09-15-2006 at 08:02 PM
RE: Is there a script to.....? - by CookieRevised on 09-15-2006 at 08:32 PM
RE: Is there a script to.....? - by Jimbo on 09-15-2006 at 08:34 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