What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Need help with a script

Need help with a script
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Need help with a script
Some important remarks about stuff like:
code:
Messenger.OpenChat(Email).SendMessage("something");
Better never use that.

Before sending a message you should always check if you actually can send a message (and if that conversation window can actually be opened). It is quite possible that you can't even send something because you've blocked the contact, or because the window can't be opened, or the contact has a mobile phone and you need to sign up first for credits, or whatever...

So:
code:
var oChatWnd = Messenger.OpenChat(Email);
if (oChatWnd.EditChangeAllowed) {
     oChatWnd.SendMessage("something")
}

This important check is way too often forgotten in extremely many scripts.

See Plus! Scripting Documentation. This is also explained in the help of the SendMessage() function...

;)

This post was edited on 05-12-2008 at 07:40 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
05-12-2008 07:39 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Need help with a script - by kantom on 05-08-2007 at 06:26 AM
RE: Need help with a script - by Spunky on 05-08-2007 at 02:42 PM
RE: Need help with a script - by matty on 05-08-2007 at 05:10 PM
RE: Need help with a script - by pray2win on 05-12-2008 at 06:19 PM
RE: Need help with a script - by roflmao456 on 05-12-2008 at 07:27 PM
RE: RE: Need help with a script - by pray2win on 05-12-2008 at 07:43 PM
RE: Need help with a script - by CookieRevised on 05-12-2008 at 07:39 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