matty
Scripting Guru
Posts: 8336 Reputation: 109
39 / /
Joined: Dec 2002
Status: Away
|
RE: Quick question + suggestion for MP!L
quote: Originally posted by evolution
1) Is there a function to send a message to all open conversations?
code: for ( var oChatWnd = new Enumerator(Messenger.CurrentChats); !oChatWnd.atEnd(); oChatWnd.moveNext() ) {
if ( oChatWnd.EditChangeAllowed === true ) oChatWnd.SendMessage('this is some text');
}
quote: Originally posted by evolution
2) How do you set a command eg. /command
code: function OnGetScriptCommands () {
return '<ScriptCommands><Command><Name>command</Name><Description>this is my command</Description></Command></ScriptCommands>';
}
quote: Originally posted by evolution
3) Is there a function to do something on the unlocking of MSN?
code: function OnEvent_MessengerLocked() {
// do stuff here
}
function OnEvent_MessengerUnlocked() {
// do stuff here
}
|
|