What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Can msg script see e-mail?

Can msg script see e-mail?
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Can msg script see e-mail?
See the Scripting Documentation. It is a great, very easy and fast help for stuff like this.

In the script Editor go to the "Options" menu and click on "Script Documentation"..... Or download the help file directly from the above link.

quote:
Originally posted by apex
code:
ChatWnd.SendMessage("You are not allowed...");

Before you use SendMessage you should _always_ check if you actually can send a message. This is explained in the Scripting Documentation:
quote:
Originally posted by Scripting Documentation - ChatWnd:: SendMessage
The EditChangeAllowed property should be checked before this function is called.

quote:
Originally posted by apex
var Email = Getadres (email) but it didn't work.
See Scripting Documentation -> Contacts::GetContact.
Make sure you read the remarks section very carefully in regards to Yahoo networks.

---

But because of the Origin parameter in the OnEvent_ChatWndReceiveMessage you can't get the email of the contact who send the message like that.

To check the banned email against the email of the contact who send the '!PSM' command you need to iterate (enumerate) thru all the contact objects in the chat window.

If the Name property of a contact object is the same as the Origin parameter you know you have the correct contact (well, in general, because actually this isn't always so and you could get false positives) of which you can use the Email property to compare against the banned email.


;)

This post was edited on 03-30-2008 at 06:24 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
03-30-2008 05:43 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Can msg script see e-mail? - by apex on 03-30-2008 at 03:33 PM
RE: Can msg script see e-mail? - by CookieRevised on 03-30-2008 at 05:43 PM
RE: Can msg script see e-mail? - by apex on 03-30-2008 at 06:49 PM
RE: Can msg script see e-mail? - by CookieRevised on 03-30-2008 at 08:13 PM
RE: Can msg script see e-mail? - by apex on 03-31-2008 at 08:32 AM


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