What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Block Un-Wished Logins

Block Un-Wished Logins
Author: Message:
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: Block Un-Wished Logins
Here's what you can do:
  1. Store your own email address in a global variable, for example:
    code:
    var sAllowedEmail = "myself@hotmail.com";
  2. In the OnEvent_Signin event, check the received first parameter (Email) against the allowed email address.
  3. If the email addresses match, do nothing.
  4. If the email addresses do not match, use Messenger.Signout() to make this unwanted user sign out. Display a friendly(?) toast message with MsgPlus.DisplayToast to inform them why he/she has just been signed out.
Although this will work great, it won't actually prevent them to sign in: they'll simply be signed out as soon as they are signed in, which is just as effective (and annoying) in my opinion. :P

Please, try not to ask us for copy-paste-ready code, this script request is very easy to achieve when you simply have a look at the scripting documentation. The best way to learn programming is by trying new things out yourself! ;)
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
12-22-2008 12:57 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Block Un-Wished Logins - by shallow on 12-22-2008 at 12:44 PM
RE: Block Un-Wished Logins - by Matti on 12-22-2008 at 12:57 PM
RE: Block Un-Wished Logins - by shallow on 12-22-2008 at 01:38 PM
RE: Block Un-Wished Logins - by Matti on 12-22-2008 at 07:27 PM
RE: Block Un-Wished Logins - by Pinecone on 12-23-2008 at 02:10 PM
RE: RE: Block Un-Wished Logins - by SmokingCookie on 12-28-2008 at 09:13 PM
RE: Block Un-Wished Logins - by Spunky on 12-28-2008 at 09:57 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