What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [request]Key press notifier

[request]Key press notifier
Author: Message:
Jesus
Scripting Contest Winner
****

Avatar
Koffie, my cat ;)

Posts: 623
Reputation: 15
37 / Male / Flag
Joined: Jul 2005
RE: RE: [request]Key press notifier
Hey Cookie, thanks for your reply ;)
you have indeed got some points here, but i'll respond to them one by one.
quote:
Originally posted by CookieRevised
(y)

though some notes:

1) The script has problems when you use polygamy. When a user has two messengers open this can easly be checked upon with:
code:
var Email = arrdata[1]; // index 12 should give the same email
if (Email !== Messenger.MyEmail) {
... do your stuff
}

You're right here, but i don't use polygamy so I didn't bother ;)

quote:
2) You assume nick is always in the contactlist. This might not be so in a multi-contact conversation. So additional checking is required there too. Or don't grab the nickname from Messenger.MyContacts.GetContact(Email).Name but grab it from the protocol message directly (decodeURI(arrdata[2])).

If the nick in the toast is not in my list, I don't want to see a toast if they're typing to me (someone else might, but I don't), apart from that I've blocked everyone who's not on my list ;) In multi contact convo's, I wouldn't want a toast for everyone that's typing in there. I see now that I might get a toast like "undefined is typing a message", but i'd fix that by checking if (nick != undefined), so I only get toasts from users on my list.
Also, wouldn't grabbing emails that are NOT on your contactlist cause trouble with the toasts callback function?
quote:
3) the global array found isn't needed. The found variable can be a local boolean.
You're right, I got confused because I first wanted to merge both arrays into one, but for some reason dropped that plan and did it this way.
quote:
4) Although not so crucial in this script, you should be carefull in using timers like that. The timer will still be running when it was started right before the user signs out (and another one signs in). This makes that your array will be used for other users also and in some scripts (this one too, in a specific situation) this will lead to errors or even manipulation of the contactlist of the wrong user.
I don't see how my script can manipulate anyones contactlist.
But then again, I don't know that much about scripting to know what's wrong with it :P
I see you used the same (or at least very similar) method, except for the my@email.com: in front of it.

quote:
5) in ScriptInfo.xml: the ocx is a ActiveX DLL, this should be listed in <OleFiles>, not <DotNetFiles>.
lol, I took that right out of the Xniff thread, this post, worked for me (probably because I had already registered the ocx)
quote:
;)

my version of the script:

(Y)

This post was edited on 10-24-2006 at 01:53 AM by Jesus.
10-24-2006 01:04 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[request]Key press notifier - by blow on 10-20-2006 at 04:33 PM
RE: [request]Key press notifier - by Zahid™ on 10-20-2006 at 04:57 PM
RE: [request]Key press notifier - by CookieRevised on 10-20-2006 at 05:55 PM
RE: [request]Key press notifier - by blow on 10-20-2006 at 06:46 PM
RE: [request]Key press notifier - by CookieRevised on 10-21-2006 at 04:22 AM
RE: [request]Key press notifier - by blow on 10-21-2006 at 03:03 PM
RE: [request]Key press notifier - by Deco on 10-21-2006 at 04:04 PM
RE: [request]Key press notifier - by blow on 10-21-2006 at 06:47 PM
RE: [request]Key press notifier - by CookieRevised on 10-21-2006 at 07:04 PM
RE: [request]Key press notifier - by blow on 10-21-2006 at 07:12 PM
RE: [request]Key press notifier - by Jesus on 10-23-2006 at 09:25 AM
RE: [request]Key press notifier - by Jimbo on 10-23-2006 at 09:34 AM
RE: [request]Key press notifier - by Jesus on 10-23-2006 at 11:53 AM
RE: [request]Key press notifier - by Jimbo on 10-23-2006 at 12:50 PM
RE: [request]Key press notifier - by CookieRevised on 10-23-2006 at 07:41 PM
RE: RE: [request]Key press notifier - by Jesus on 10-24-2006 at 01:04 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