What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Edit text in conversation

Edit text in conversation
Author: Message:
pollolibredegrasa
Full Member
***

Avatar
formerly fatfreechicken

Posts: 483
Reputation: 34
35 / Male / Flag
Joined: May 2005
O.P. Edit text in conversation
I had a brief glance through the scripting documentation, but didn't see anything I thought relevant.

Simply put, can I edit text displayed in the chat window?

Say I want to send a message "Blah Blah", can I make this appear in my conversation as "Hello" or something, but still actualy send the text "Blah Blah"?

It doesn't matter what the other user sees, it's just my screen I'm concerned about :)

Any help would be appreciated

;p

[Image: chickennana.gif] Vaccy is my thin twin! [Image: chickennana.gif]
07-03-2006 01:52 PM
Profile PM Find Quote Report
Ezra
Veteran Member
*****

Avatar
Forgiveness is between them and God

Posts: 1960
Reputation: 31
37 / Male / Flag
Joined: Mar 2003
RE: Edit text in conversation
Not with the normal scripting interface you can't maybe hooking with AA can do this...
[Image: 1-0.png]
             
07-03-2006 01:53 PM
Profile PM Web Find Quote Report
pollolibredegrasa
Full Member
***

Avatar
formerly fatfreechicken

Posts: 483
Reputation: 34
35 / Male / Flag
Joined: May 2005
O.P. RE: Edit text in conversation
Ah, forget it then. Thanks anyway :)
;p

[Image: chickennana.gif] Vaccy is my thin twin! [Image: chickennana.gif]
07-03-2006 01:54 PM
Profile PM Find Quote Report
The Brain
Junior Member
**

Avatar

Posts: 49
Reputation: 1
– / Male / Flag
Joined: Jan 2003
RE: Edit text in conversation
Sure you can, using the OnEvent_MessageRecieved

something like

code:
if(Origin == Messenger.MyName) //Message is sent by you
{
    if(Message == "Blah Blah")//replace "Blah Blah" with "Hello!"
    {
        return "Hello!";
    }
}


unfortunately, the text you replace it with can't be any longer than what you actually send.

Not tested, but as far as I am aware, that is how this event works.

This post was edited on 07-03-2006 at 02:08 PM by The Brain.
07-03-2006 02:08 PM
Profile PM Web Find Quote Report
Ezra
Veteran Member
*****

Avatar
Forgiveness is between them and God

Posts: 1960
Reputation: 31
37 / Male / Flag
Joined: Mar 2003
RE: Edit text in conversation
No, that will also change the text sent to the contact.
[Image: 1-0.png]
             
07-03-2006 02:09 PM
Profile PM Web Find Quote Report
foaly
Senior Member
****

Avatar

Posts: 718
Reputation: 20
38 / Male / Flag
Joined: Jul 2006
RE: Edit text in conversation
no, it won't because it only happens on a recieved message...
07-03-2006 02:14 PM
Profile E-Mail PM Find Quote Report
The Brain
Junior Member
**

Avatar

Posts: 49
Reputation: 1
– / Male / Flag
Joined: Jan 2003
RE: RE: Edit text in conversation
Thankyou foaly, that is right. I just tested it, and it will be replaced in your screen, but not your contact's.

Here is the exact code I used

code:

function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind)
{
    if(Origin == Messenger.MyName)
    {
        if(Message == "Blah Blah")
        {
            return "Hello!";
        }
    }
    return Message;
}


Have fun with whatever you want to use this to develop, fatfreechicken

This post was edited on 07-03-2006 at 02:19 PM by The Brain.
07-03-2006 02:18 PM
Profile PM Web Find Quote Report
Ezra
Veteran Member
*****

Avatar
Forgiveness is between them and God

Posts: 1960
Reputation: 31
37 / Male / Flag
Joined: Mar 2003
RE: Edit text in conversation
:o, you are right, I thougt if you returned a message on ReceivedMessage it also sent that to the contact.
[Image: 1-0.png]
             
07-03-2006 02:30 PM
Profile 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