What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Request] Always word

[Request] Always word
Author: Message:
akyyy
Junior Member
**


Posts: 32
Joined: Apr 2005
O.P. [Request] Always word
[Image: msn.JPG]
i w like always display "qweqwe" automatic , when i send text....
09-16-2006 03:53 PM
Profile E-Mail PM Find Quote Report
markee
Veteran Member
*****

Avatar

Posts: 1622
Reputation: 50
36 / Male / Flag
Joined: Jan 2006
RE: [Request] Always word
I think this is what you are after.  Hope you like it.
code:
function OnEvent_ChatWndSendMessage(ChatWnd,Message){//when you send a message
ChatWnd.SendMessage("qweqwe: "+Message)//prefix your message with qweqwe:
}
[Image: markee.png]
09-16-2006 04:01 PM
Profile PM Find Quote Report
Huhu_Manix
Full Member
***

Avatar
Upload me again... *salivate*

Posts: 106
– / Male / –
Joined: Jul 2006
RE: [Request] Always word
Don't forget the "return '';" otherwise the message'll be send without "qweqwe :" too.


code:
function OnEvent_ChatWndSendMessage(ChatWnd,Message){//when you send a message
ChatWnd.SendMessage("qweqwe: "+Message)//prefix your message with qweqwe:
return "";
}

or

code:
function OnEvent_ChatWndSendMessage(ChatWnd,Message){
if(Message.charAt(0)!="/") return "qweqwe: "+Message;
}
09-16-2006 09:45 PM
Profile E-Mail PM Web Find Quote Report
akyyy
Junior Member
**


Posts: 32
Joined: Apr 2005
O.P. RE: [Request] Always word
jeje, very thx!!:)
09-16-2006 10:05 PM
Profile E-Mail PM Find Quote Report
akyyy
Junior Member
**


Posts: 32
Joined: Apr 2005
O.P. RE: [Request] Always word
hmm, i need it on and off funkcional:S
etc.:

/logo_on ->turn on
/logo_off ->turn off
09-17-2006 01:46 PM
Profile E-Mail PM Find Quote Report
Huhu_Manix
Full Member
***

Avatar
Upload me again... *salivate*

Posts: 106
– / Male / –
Joined: Jul 2006
RE: [Request] Always word
code:
var activate = false;

function OnEvent_ChatWndSendMessage(ChatWnd,Message){
if(Message=="/logo_on"){
activate=true;
return '';
}
if(Message=="/logo_off"){
activate=false;
return '';
}
if(Message.charAt(0)!="/"&&activate) return "qweqwe: "+Message;
}

// SHOW COMMANDS INTO THE COMMAND BOX
function OnGetScriptCommands(){
    var commands = '<ScriptCommands>';
        commands+='<Command>';
        commands+='<Name>logo_on</Name>';
        commands+='<Description>Description...</Description>';
        commands+='</Command>';
        commands+='<Command>';
        commands+='<Name>logo_off</Name>';
        commands+='<Description>Description...</Description>';
        commands+='</Command>';
    commands+='</ScriptCommands>';
    return commands;
}


This post was edited on 09-17-2006 at 02:00 PM by Huhu_Manix.
09-17-2006 02:00 PM
Profile E-Mail PM Web 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