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

Blocking
Author: Message:
Shondoit
Full Member
***

Avatar
Hmm, Just Me...

Posts: 227
Reputation: 15
36 / Male / Flag
Joined: Jul 2006
RE: Blocking
Like if someone starts talking to you?
sure... (still can't test though)

code:
var BlockedUser = "user@blocked.com"
function OnEvent_ChatWndReceiveMessage (ChatWnd, Origin, Message, MessageKind) {
   for (var e = new Enumerator(ChatWnd.Contacts); !e.atEnd(); e.moveNext()) {
      Contact = e.item()
      if (Contact.Email == BlockedUser) {
         Contact.Blocked = true
         MsgPlus.AddTimer("Unblock", Time)
      }
   }
}
functionOnEvent_Timer (TimerId) {
      var Contact = Messenger.MyContacts.GetContact(BlockedUser)
      Contact.Blocked = false
   }
}
My scripts:                            [Image: shondoit.gif]
+ Timezone
+ Camelo
+ Multisearch
09-13-2006 05:38 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Blocking - by mozzer on 09-13-2006 at 04:58 PM
RE: Blocking - by Shondoit on 09-13-2006 at 05:21 PM
RE: Blocking - by mozzer on 09-13-2006 at 05:27 PM
RE: Blocking - by Shondoit on 09-13-2006 at 05:38 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