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

2 things...
Author: Message:
color680
Banned


Posts: 15
Reputation: -4
Joined: Mar 2007
O.P. 2 things...
I need some help with my script.

I know the code for changing a message sent before its sent.
But how do i make it like a list? Like this,

sent---changed

hello        hi
bye         gtg

It might not be like that but i hope you know what i mean :)

2nd thing is how do i make a / command for my script to turn on/off like this,

/on
/off

I hope you know what i meen...

Thanks (y)
03-02-2007 08:18 PM
Profile E-Mail PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: 2 things...
First problem:
Look up things in the Windows JScript 5.6 documentation and look at the source of (many) scripts and also search the forums. Look up Replace, indexOf, and other related string functions.

Second Problem:
Look up things in the Plus! scripting documentation and look at the source of (almost all) scripts and also search the forums. Look up GetScriptCommands and OnEvent_ChatWndSendMessage.


Note: the reason why I don't give a straight answer is so you can learn to look things up and learn from there. This is way more effecient and you will learn much more than just copy/pasting something ;)

Both are extremely basic though.











EDIT: so I don't revive this thread after so long:
quote:
Originally posted by Supersonicdarky
this one is better because the other one had conflicting variables
There are no conflicting variables in his code. you can perfectly reuse a variable like that. In fact, it will use less memory (and will run a tick faster since the script parser doesn't need to create and allocate a new variable).

This post was edited on 07-19-2008 at 08:18 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
03-02-2007 09:28 PM
Profile PM Find Quote Report
color680
Banned


Posts: 15
Reputation: -4
Joined: Mar 2007
O.P. RE: 2 things...
Ok i got this

quote:
Originally posted by NanaFreak
no...

to make a script do what you want it is very simple

code:
function OnEvent_ChatWndSendMessage(ChatWnd, Message){
  Message = 'stuff you want before the massage'+Message+'stuff after the message';
  return Message;
}


I understand it :)
Do i just copy it 12 times and edit the varibles?
03-02-2007 09:44 PM
Profile E-Mail PM Find Quote Report
Supersonicdarky
Veteran Member
*****

Avatar

Posts: 2317
Reputation: 48
– / – / Flag
Joined: Feb 2005
Status: Away
RE: 2 things...
code:
function OnEvent_ChatWndSendMessage(ChatWnd, Message){
  nMessage = 'stuff you want before the message'+Message+'stuff after the message';
  return nMessage;
}

this one is better because the other one had conflicting variables
03-02-2007 09:49 PM
Profile E-Mail PM Find Quote Report
color680
Banned


Posts: 15
Reputation: -4
Joined: Mar 2007
O.P. RE: 2 things...
quote:
Originally posted by Supersonicdarky
code:
function OnEvent_ChatWndSendMessage(ChatWnd, Message){
  nMessage = 'stuff you want before the message'+Message+'stuff after the message';
  return nMessage;
}

this one is better because the other one had conflicting variables

So do i?
03-02-2007 09:56 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