[Modifying] ToastMessage - Settings to filter (updated) - Printable Version
-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [Modifying] ToastMessage - Settings to filter (updated) (/showthread.php?tid=81633)
[Modifying] ToastMessage - Settings to filter (updated) by Firehalk on 02-13-2008 at 11:06 AM
______________
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!
RE: [Modifying ] ToastMessage - Filter by email (updated) by Firehalk on 02-14-2008 at 03:55 PM
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.
RE: [Modifying] ToastMessage - Settings to filter (updated) by matty on 02-14-2008 at 05:41 PM
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.
RE: [Modifying] ToastMessage - Settings to filter (updated) by Firehalk on 02-14-2008 at 06:37 PM
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.
RE: [Modifying] ToastMessage - Settings to filter (updated) by AberNStein on 02-24-2008 at 07:11 PM
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
|