What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Modifying] ToastMessage - Settings to filter (updated)

[Modifying] ToastMessage - Settings to filter (updated)
Author: Message:
Firehalk
Junior Member
**

Avatar
(Nicholas)

Posts: 71
36 / Male / Flag
Joined: Oct 2004
O.P. [Modifying] ToastMessage - Settings to filter (updated)
______________

Edit 2: Read reply below.

________________

Edit: Tried to do this by using the "Origin", but then I don't know how to get the email adress from it, just nicknames :(

Updated the code. Now I handle how to put the elements on an array.

My question: Please, if anyone knows how I can get the user's email using origin or something else, tell me!


code:
--- Code can be downloaded above now ---



quote:
Original topic message:

Hey guys,

I'm trying to modify the ToastMessage script, in order to it work only with a few contacts. To make it easier to myself (don't know much of scripting) I'm trying just to make for a single contact for now.

What I'm trying to do, is: If the contact email of the window opened is true when comparing to my "ecad" var, then go ahead.

No error on the debug window, but doesn't work :(

It's not filtering.


Any feedback is appreciate,

Thanks!

This post was edited on 02-14-2008 at 09:39 PM by Firehalk.
02-13-2008 11:06 AM
Profile E-Mail PM Find Quote Report
Firehalk
Junior Member
**

Avatar
(Nicholas)

Posts: 71
36 / Male / Flag
Joined: Oct 2004
O.P. RE: [Modifying ] ToastMessage - Filter by email (updated)
Okey, big post update.

While no one that viewed the post appeared to know the answer, I had the idea of get the interface of Group Convo script, and edit it in order to use with this modification I want to do.

My knowledge about scripts/javascript are not so good as I already said, so I was able to manage the "add" button only. The "remove" and "apply" buttons I don't know how I can do, because I don't know how I will store these informations (register only? if so, i have no idea how to set all this)

There is on the code still the array I have made to put nicknames on. I wish I could put user's settings of the script on that array, but if possible, would be temporary until user closes script, right?

It's not a stupid idea, so If someone wants to go ahead with it, I would appreciate a lot! Otherwise, just some help for me to do it would be good already.

On attachment, the .plsc of what I have till now.

Appreciate any feedback.

Thanks.

.plsc File Attachment: Toast Message.plsc (2.6 KB)
This file has been downloaded 207 time(s).
02-14-2008 03:55 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: [Modifying] ToastMessage - Settings to filter (updated)
code:
function OnEvent_ChatWndReceiveMessage(oChatWnd, sOrigin, sMessage, nMessageKind) {
    for (var oContact = new Enumerator(oChatWnd.Contacts); !oContact.atEnd(); oContact.moveNext()) {
        if (oContact.item().Name === sOrigin) Debug.Trace(oContact.item().Email);
    }
}

This certainly isn't the best way and there are many others on the forum.

This post was edited on 02-14-2008 at 05:41 PM by matty.
02-14-2008 05:41 PM
Profile E-Mail PM Find Quote Report
Firehalk
Junior Member
**

Avatar
(Nicholas)

Posts: 71
36 / Male / Flag
Joined: Oct 2004
O.P. RE: [Modifying] ToastMessage - Settings to filter (updated)
Thanks matty.

I searched before and didn't find any on the search. So I decided to ask.

I've updated the topic. Put the Group Convo interface, so I guess I won't need the e-mail code If someone helps on the way I can store the values (uses selected my list) on some place.

But the code u sent will help a lot till there.
02-14-2008 06:37 PM
Profile E-Mail PM Find Quote Report
AberNStein
Full Member
***


Posts: 132
Reputation: 2
Joined: Jul 2006
RE: [Modifying] ToastMessage - Settings to filter (updated)
hey there
uh
i like how you took my script, added bits, and released it
without asking me for permission
or posting in the script's thread with a feature request
or even notifying me at all

fun fact: you're working from a really old version of Toast Message, which is missing a bunch of features, and generally sucks.
get the latest version at http://shoutbox.menthix.net/showthread.php?tid=63...d=763573#pid763573
and feel free to post a feature request in that thread
i'm pretty sure i can just integrate code from my other script (Alarm; it's not in the script database) to store and recall an array of contacts. but you'll have to ask nicely ;)
[expect an update/fork this week, if you indeed do ask]
-AberNStein
[Image: gybouserbar6hc.gif]
02-24-2008 07:11 PM
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