What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Quick question + suggestion for MP!L

Quick question + suggestion for MP!L
Author: Message:
evolution
New Member
*

Avatar
- MyCurse -

Posts: 2
29 / Male / Flag
Joined: Jun 2008
O.P. Quick question + suggestion for MP!L
Ok I'm developing a script to add a quick BRB function, but since I'm new to Messenger Plus! scripting I'm not sure on a few things.

1) Is there a function to send a message to all open conversations?
2) How do you set a command eg. /command
3) Is there a function to do something on the unlocking of MSN?

Thanks. :)

And for the suggestion, I think there should be an option for when you lock MSN when you go to unlock it you have to enter your MSN password.
06-24-2008 02:47 AM
Profile PM Web Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
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
}

06-24-2008 03:05 AM
Profile E-Mail PM Find Quote Report
evolution
New Member
*

Avatar
- MyCurse -

Posts: 2
29 / Male / Flag
Joined: Jun 2008
O.P. RE: RE: Quick question + suggestion for MP!L
Thanks mate! That was quicker than I expected. :D

Just one question:
Where do I actually put what I want the command to do?
quote:
function OnGetScriptCommands () {
    return '<ScriptCommands><Command><Name>command</Name><Description>this is my command</Description>Here?</Command></ScriptCommands>';
}
06-24-2008 03:15 AM
Profile PM Web Find Quote Report
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
31 / Male / Flag
Joined: Apr 2004
RE: Quick question + suggestion for MP!L
The OnGetScriptCommands() event is just so that the command is displayed in the box when you type "/" in a chat window. You should parse the command yourself through the OnEvent_ChatWndSendMessage event.

For a great example of a command parser, have a look at CookieRevised's reply to Gettin data from "/" commands and markee's reply to Gettin data from "/" commands. :)
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
06-24-2008 07:45 AM
Profile E-Mail PM Web Find Quote Report
NanaFreak
Scripting Contest Winner
*****


Posts: 1476
Reputation: 53
32 / Male / Flag
Joined: Jul 2006
RE: Quick question + suggestion for MP!L
quote:
Originally posted by evolution
And for the suggestion, I think there should be an option for when you lock MSN when you go to unlock it you have to enter your MSN password.
cant be done because plus cannot access you msn password... sorry
06-24-2008 08:03 AM
Profile PM Find Quote Report
Basilis
Veteran Member
*****

Avatar
Olympiacos CFP

Posts: 1366
Reputation: 46
30 / Male / Flag
Joined: Dec 2007
RE: Quick question + suggestion for MP!L
quote:
Originally posted by evolution
And for the suggestion, I think there should be an option for when you lock MSN when you go to unlock it you have to enter your MSN password.

There is an option asking you if you want to have a code to unlock MSN or not. You can have your MSN password code if you want or anything else so there is such an option but it lets you put any code you like and not just your MSN password. :)
[Image: logo1nu1.png]
06-24-2008 08:14 AM
Profile PM Find Quote Report
Chancer
Senior Member
****

Avatar

Posts: 648
Reputation: 7
34 / Male / Flag
Joined: May 2005
Status: Away
RE: Quick question + suggestion for MP!L
quote:
Originally posted by NanaFreak
quote:
Originally posted by evolution
And for the suggestion, I think there should be an option for when you lock MSN when you go to unlock it you have to enter your MSN password.
cant be done because plus cannot access you msn password... sorry
But maybe a script that stores another password and asks it when you unlock.
06-24-2008 08:55 PM
Profile E-Mail PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Quick question + suggestion for MP!L
quote:
Originally posted by Chancer
But maybe a script that stores another password and asks it when you unlock.
Not needed. You can already set a password for when you use the unlock feature of Messenger Plus!.

Plus! > Preferences > Messenger > Messenger Lock > When unlocking Messenger: ask for password to unlock
.-= A 'frrrrrrrituurrr' for Wacky =-.
06-25-2008 06:55 AM
Profile PM Find Quote Report
Chancer
Senior Member
****

Avatar

Posts: 648
Reputation: 7
34 / Male / Flag
Joined: May 2005
Status: Away
RE: Quick question + suggestion for MP!L
quote:
Originally posted by CookieRevised
Not needed. You can already set a password for when you use the unlock feature of Messenger Plus!.

Plus! > Preferences > Messenger > Messenger Lock > When unlocking Messenger: ask for password to unlock
That's true. I've never noticed that.
06-25-2008 09:51 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »


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