What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [SOLVED] How do I create a variable thing like (!VER)?

[SOLVED] How do I create a variable thing like (!VER)?
Author: Message:
markee
Veteran Member
*****

Avatar

Posts: 1621
Reputation: 50
36 / Male / Flag
Joined: Jan 2006
RE: How do I create a variable thing like (!VER)?
quote:
Originally posted by Agret
markee I finally got around to testing your code and although it replaces the Message thing alright it doesn't actually replace the message that is sent to your recipient, I can only access the new value from a script
Sorry, you have to return the Msg variable, I just put in ... for if you wanted to do more in the script.  If you just want to do that one thing then here is the script.

code:
function OnEvent_ChatWndSendMessage(Wnd,Msg){
Msg = Msg.replace(/\(\!MEH\)/g,variable);//replace (!MEH) with string in variable
return Msg;
}

Btw you can still add more than you want, I just wanted to give you an example or snippet of the code first rather than writing something fully.
[Image: markee.png]
12-01-2006 12:44 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[SOLVED] How do I create a variable thing like (!VER)? - by Agret on 12-01-2006 at 07:43 AM
RE: How do I create a variable thing like (!VER)? - by markee on 12-01-2006 at 07:48 AM
RE: How do I create a variable thing like (!VER)? - by Agret on 12-01-2006 at 08:03 AM
RE: How do I create a variable thing like (!VER)? - by NiteMare on 12-01-2006 at 08:17 AM
RE: How do I create a variable thing like (!VER)? - by Agret on 12-01-2006 at 08:28 AM
RE: RE: How do I create a variable thing like (!VER)? - by CookieRevised on 12-01-2006 at 07:35 PM
RE: How do I create a variable thing like (!VER)? - by Ezra on 12-01-2006 at 09:09 AM
RE: How do I create a variable thing like (!VER)? - by Agret on 12-01-2006 at 12:38 PM
RE: How do I create a variable thing like (!VER)? - by markee on 12-01-2006 at 12:44 PM
RE: How do I create a variable thing like (!VER)? - by Felu on 12-01-2006 at 12:46 PM
RE: How do I create a variable thing like (!VER)? - by Agret on 12-01-2006 at 02:17 PM


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