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

Creating a Command?
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Creating a Command?
quote:
Originally posted by Samo502
quote:
Originally posted by CookieRevised

Also, before using the SendMessage function you should test if you actually can send a string back because it is not always possible
Meaning?
Scripting Docs > Index > ChatWnd:: SendMessage tells you:
quote:
Remarks:
If the text being set is longer than the maximum allowed (typically 1100 characters), it is truncated. If the typing area already contains text when this function is called, it is saved before the message is sent and automatically restored after that. The EditChangeAllowed property should be checked before this function is called.
Thus:

JScript code:
if (ChatWnd.EditChangeAllowed) {
    ChatWnd.SendMessage("[N]" + Contact.Name + " is " + status + "[/N]")
}


quote:
Originally posted by Samo502
It had no need being there since there is no enumeration for 2, it skips it in the statuslist.
true, but for completeness sake (and maybe for futur compatibility) you can put it there (just as I showed in the example code, only 1 extra line).

Note that there actually is an enumeration constant for that. See Scripting Docs > Index > Messenger:MyStatus:
quote:
STATUS_INVISIBLE (2)

;)

This post was edited on 10-01-2009 at 07:01 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
10-01-2009 06:56 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Creating a Command? - by Samo502 on 10-01-2009 at 05:37 PM
RE: Creating a Command? - by m0nst3rkill3r on 10-01-2009 at 05:41 PM
RE: Creating a Command? - by matty on 10-01-2009 at 05:44 PM
RE: Creating a Command? - by Samo502 on 10-01-2009 at 05:47 PM
RE: Creating a Command? - by matty on 10-01-2009 at 06:10 PM
RE: Creating a Command? - by Samo502 on 10-01-2009 at 06:12 PM
RE: Creating a Command? - by CookieRevised on 10-01-2009 at 06:36 PM
RE: Creating a Command? - by Samo502 on 10-01-2009 at 06:51 PM
RE: Creating a Command? - by CookieRevised on 10-01-2009 at 06:56 PM
RE: Creating a Command? - by matty on 10-01-2009 at 07:56 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