What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [release] No Response

[release] No Response
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: [release] No Response
Nice idea, but I would hate it when people use such a script against me :p Anyways, some quick comments to improve/fix the script:


-Before using the SendMessage() function, _always_ check that you actually can send something. This is very much stressed upon in the scripting documentation. Especially if you use it in a delayed function like a timer event.

-Cancel all timers when the user signs out!!!!!!!!!!
(...for making it user specific (currently the script is not), and also to avoid a big list of (internal) errors when you do sign out or are signed out, and to avoid that another user is nudging people out of the blue.

-
code:
var Contacts = ChatWnd.Contacts;
var e = new Enumerator(Contacts);
var NoContacts = 0;
for(var e = new Enumerator(Contacts); !e.atEnd(); e.moveNext()) {     // why do people always put the enumeration declaration outside the For function, such a waste of space :p
var Contact = e.item();
Debug.Trace(" " + Contact.Email);
NoContacts = NoContacts + 1;
}
why not simply ChatWnd.Contacts.Count ?


-
code:
if (Origin != Messenger.MyName) {
Debug.Trace("Message Received");
var Contacts = ChatWnd.Contacts;
for(var e = new Enumerator(Contacts); !e.atEnd(); e.moveNext()) {
var Contact = e.item();
Debug.Trace(" " + Contact.Email);
}
MsgPlus.CancelTimer(Contact.Email);
Debug.Trace("Timer Cancelled");
}
You will cancel the timer from somebody else here...

Contact A has a personal convo with you.
Contact A is also in a group chat with you, together with contact B.
You say something in the personal chat to contact A, timer A starts.
Contact B says something in the group chat, timer of A cancels...

(goes against what your script is meant to do I think)


;)


/me will wave the block wand when someone uses this script against me :P


EDIT:
quote:
Originally posted by saralk
The truth is, I just wanted a T-shirt
lol (Y)

This post was edited on 06-18-2007 at 04:37 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
06-18-2007 03:04 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[release] No Response - by saralk on 08-26-2006 at 11:39 AM
RE: [release] No Response - by Jimbo on 08-26-2006 at 11:43 AM
RE: [release] No Response - by Felu on 08-26-2006 at 11:57 AM
RE: [release] No Response - by Jimbo on 08-27-2006 at 05:26 PM
RE: [release] No Response - by vaccination on 08-27-2006 at 05:33 PM
RE: [release] No Response - by Thor on 08-27-2006 at 05:57 PM
RE: [release] No Response - by artfuldodga on 08-27-2006 at 06:13 PM
RE: [release] No Response - by nuclide on 06-18-2007 at 07:56 AM
RE: [release] No Response - by TheGuruSupremacy on 06-18-2007 at 11:11 AM
RE: RE: [release] No Response - by nuclide on 06-18-2007 at 01:32 PM
RE: [release] No Response - by TheGuruSupremacy on 06-18-2007 at 02:12 PM
RE: [release] No Response - by nuclide on 06-18-2007 at 02:34 PM
RE: [release] No Response - by KatieScarlett on 06-18-2007 at 02:55 PM
RE: [release] No Response - by CookieRevised on 06-18-2007 at 03:04 PM
RE: [release] No Response - by Eddie on 06-18-2007 at 04:05 PM
RE: [release] No Response - by saralk on 06-18-2007 at 04:25 PM
RE: [release] No Response - by blacky on 03-15-2008 at 11:48 AM
RE: [release] No Response - by saralk on 03-15-2008 at 08:32 PM
RE: [release] No Response - by blacky on 03-15-2008 at 08:41 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