What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Selective Talker

Pages: (2): « First [ 1 ] 2 » Last »
Selective Talker
Author: Message:
mlevit
Junior Member
**


Posts: 50
Reputation: 2
37 / Male / –
Joined: Sep 2005
O.P. Selective Talker
Hey,

I have taken Selective Talker and changed a few things around in it. I had made it for my girlfriend so that she can use it with ease.

So i had implemented a menu where you can select Block All / Unblock All instead of !blockall / !unblockall in the message window.

I don't want to officially submit this because 90% of the work was done by Anthony Leach the maker of Selective Talker so i just wanted to put this out here so maybe Anthony Leach could modify the original script with the new menu i've done.

Changed the name a bit too :P

Selective Chatting
07-28-2006 02:43 PM
Profile PM Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: Selective Talker
The fact that you've credited the original author already puts you in good stead [Image: msn_wink.gif]

I shall reward you with positive rep.
[Image: spartaafk.png]
07-28-2006 02:45 PM
Profile PM Web Find Quote Report
mlevit
Junior Member
**


Posts: 50
Reputation: 2
37 / Male / –
Joined: Sep 2005
O.P. RE: Selective Talker
Thanks RaceProUK, I obviously didn't write the whole program mainly because i cannot be bothered reading through the API :D

Maybe when i have time later ill read through it, see what cool things i can come up with.
07-28-2006 02:54 PM
Profile PM Find Quote Report
Intosia
Junior Member
**

Avatar
I'm dynamic ^^

Posts: 78
40 / Male / –
Joined: Mar 2004
RE: Selective Talker
I also modified that script so it remembered who was blocked before :)

If anyone wants that version, yell

This post was edited on 07-28-2006 at 03:45 PM by Intosia.
07-28-2006 03:43 PM
Profile E-Mail PM Web Find Quote Report
mlevit
Junior Member
**


Posts: 50
Reputation: 2
37 / Male / –
Joined: Sep 2005
O.P. RE: Selective Talker
quote:
Originally posted by Intosia
I also modified that script so it remembered who was blocked before :)

If anyone wants that version, yell


Oh mate, that's fantastic. I was set to do that this morning.

If you could send your version too m_levit@optusnet.com.au and maybe just mark your added code that would be great.

This post was edited on 07-28-2006 at 10:33 PM by mlevit.
07-28-2006 10:27 PM
Profile PM Find Quote Report
Intosia
Junior Member
**

Avatar
I'm dynamic ^^

Posts: 78
40 / Male / –
Joined: Mar 2004
RE: Selective Talker
Ill post the code here...


code:
var blocked = "False";
var BlockedContacts = new Array()

function OnEvent_ChatWndCreated(ChatWnd) {
    var e = new Enumerator(ChatWnd.Contacts);
    var Contact = e.item();
    Contact.Blocked = "False";
}

function OnGetScriptMenu(Location) {
    var ScriptMenu = "<ScriptMenu>";

        ScriptMenu += "<MenuEntry Id=\"mnuBlockall\">Block all!</MenuEntry>";
        ScriptMenu += "<Seperator/>";
        ScriptMenu += "<MenuEntry Id=\"mnuUnblockall\">Unblock all!</MenuEntry>";
    ScriptMenu += "</ScriptMenu>";
    return ScriptMenu;
}


function OnEvent_MenuClicked(MenuItemId,Location,OriginWnd) {
   switch(MenuItemId) {
      case 'mnuBlockall':
         blockall();
         break;
      case 'mnuUnblockall':
         unblockall();
         break;
   }
}

function blockall()
{
    i = -1;
    var e = new Enumerator(Messenger.MyContacts);
    for(; !e.atEnd();  e.moveNext()) {
        var Contact = e.item();
           
        if (Contact.Blocked) {
            BlockedContacts[i++] = Contact.Email;
        }
   
        Contact.Blocked = true;
    }
    blocked = true;
}

function unblockall()
{
    var e = new Enumerator(Messenger.MyContacts);
    for(; !e.atEnd();  e.moveNext()) {
        var Contact = e.item();
       
        // Check if contact was blocked before       
        Match = false;
        var e2 = new Enumerator(BlockedContacts);
        for(; !e2.atEnd();  e2.moveNext()) {
            var BlockedEmail = e2.item();
            if (Contact.Email == BlockedEmail) {
                Match = true;
            }
               
        }
        // Contact was blocked before > dont unblock
        if (Match != true) {
            Contact.Blocked = false;
        }
    }
    blocked = false;       
}


This post was edited on 07-29-2006 at 10:12 AM by Intosia.
07-29-2006 10:11 AM
Profile E-Mail PM Web Find Quote Report
mlevit
Junior Member
**


Posts: 50
Reputation: 2
37 / Male / –
Joined: Sep 2005
O.P. RE: Selective Talker
Thanks, i've implemented that into the script.
07-29-2006 11:05 AM
Profile PM Find Quote Report
Geo
Junior Member
**

Avatar

Posts: 66
Joined: Jul 2006
RE: Selective Talker
Thank you,
And it possible to add one Stop / Start of the script in the menu (that I know how to make it)
On the other hand I shall like that when I start the script that it blocks automatically my contacts except those with whom I have a window of opened conversation
07-30-2006 05:43 PM
Profile E-Mail PM Find Quote Report
Intosia
Junior Member
**

Avatar
I'm dynamic ^^

Posts: 78
40 / Male / –
Joined: Mar 2004
RE: Selective Talker
If im correct thats not possible, because you cant emumerate though the Chat windows...
07-30-2006 06:06 PM
Profile E-Mail PM Web Find Quote Report
mlevit
Junior Member
**


Posts: 50
Reputation: 2
37 / Male / –
Joined: Sep 2005
O.P. RE: RE: Selective Talker
quote:
Originally posted by Geo
Thank you,
And it possible to add one Stop / Start of the script in the menu (that I know how to make it)
On the other hand I shall like that when I start the script that it blocks automatically my contacts except those with whom I have a window of opened conversation


If you're talking about adding a stop/start to the script menu that would stop/start the script then it wont work because the script has to be started for the menu to exists.

I had tried to make it so it doesn't block the people who you currently have a window open with, but it hasn't worked out too well, and i dropped it. If you could get it to work, then update the script and repost it. The topic is here
07-30-2006 11:01 PM
Profile PM Find Quote Report
Pages: (2): « First [ 1 ] 2 » Last »
« 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