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

Help ME
Author: Message:
traxrex
New Member
*


Posts: 6
Joined: Apr 2010
O.P. Help ME
is This Possible If Yes Can You Tell Me The Code?

I want a command " /setuser ". Usage: /Setuser Name Here
and Add it to user.  Like When u Put "(" user ")" it Comes As (name).
And u can change the name By Doing /setuser With an Other Name.
and The Name Gets Saved For That Email Id


This post was edited on 05-03-2010 at 12:23 PM by traxrex.
05-03-2010 12:01 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Help ME
This makes no sense... are you trying to change your contact's name? If so you cannot do this. Are you trying to change their nickname on your contact list? Not possible. If you are trying to change your own name then you can use /nick.
05-03-2010 04:01 PM
Profile E-Mail PM Find Quote Report
traxrex
New Member
*


Posts: 6
Joined: Apr 2010
O.P. RE: Help ME
example : /setuser john (it will not change name Or nickname Just Save The Name John Into Character User)

so i can use /do
Example /do Hello

Output: Hello ((john))
05-04-2010 01:42 AM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Help ME
Javascript code:
var objChatWnd = {};
 
function OnEvent_ChatWndSendMessage (pChatWnd, sMessage) {
    var m;
    if ((m = /^\/([^\s\/]+)\s*([\s\S]*)$/.exec(sMessage))) {
        switch (m[1].toLowerCase()) {
            case 'setuser' :
                objChatWnd[pChatWnd.Handle] = m[2];
                return '';
            case 'do' :
                return m[2]+' [['+objChatWnd[pChatWnd.Handle]+']]';
        }
    }
    return sMessage;
}
 
function OnEvent_ChatWndDestroyed (pChatWnd) {
    delete objChatWnd[pChatWnd.Handle];
}
 
function OnGetScriptCommands () {
    return '<ScriptCommands>'+
        '<Command><Name>setuser</Name><Description>Set\'s the users name for the chat window</Description>'+
        '<Command><Name>do</Name><Description>Appends the name to the message</Description>'+
        '</ScriptCommands>';
}


This post was edited on 05-05-2010 at 02:00 PM by matty.
05-04-2010 02:04 AM
Profile E-Mail PM Find Quote Report
traxrex
New Member
*


Posts: 6
Joined: Apr 2010
O.P. RE: Help ME
i m getting an error
Error: Expected '}' (code: -2146827279)
       File: Pr-Rp Script.js. Line: 10.

Help

This post was edited on 05-04-2010 at 10:10 AM by traxrex.
05-04-2010 05:50 AM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Help ME
Oops. Try again
05-04-2010 12:50 PM
Profile E-Mail PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Help ME
Matty, still a small booboo:
code:
case 'do' :
        return m[2]+' 'objChatWnd[pChatWnd.Handle];
=>
code:
case 'do' :
        return m[2]+' '+objChatWnd[pChatWnd.Handle];

;)



Not exactly sure what he wants either though....

--

I first thought he wanted to append the text "(John)" to John's nickname in a chat window (which is indeed not possible with Plus! scripting)

--

Then I thought he meant he wanted to save a textual shortcut to the chatwindow, so he can write, from another chat window, to this now named chat window. Something like:

Input in a chat with John:
  /setname MyChatWithJohn

Input in a chat with Tom:
  /do hello

Output in chat with John:
  Me says:
  hello (MyChatWithJohn)

--

But now I see you believe he asks for yet something else...
so... :undecided:

This post was edited on 05-04-2010 at 06:56 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
05-04-2010 06:49 PM
Profile PM Find Quote Report
traxrex
New Member
*


Posts: 6
Joined: Apr 2010
O.P. RE: Help ME
thanks but can u make it put [[ before the name set with /setuser and ]] after it

This post was edited on 05-05-2010 at 03:13 AM by traxrex.
05-05-2010 03:12 AM
Profile E-Mail PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Help ME
code:
case 'do' :
        return m[2] + ' [[' + objChatWnd[pChatWnd.Handle] + ']]';
.-= A 'frrrrrrrituurrr' for Wacky =-.
05-05-2010 08:04 AM
Profile PM Find Quote Report
traxrex
New Member
*


Posts: 6
Joined: Apr 2010
O.P. RE: Help ME
Thank You Very Much :D
05-06-2010 04:04 AM
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