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

Author: Message:
mynetx
Skinning Contest Winner
*****

Avatar
Microsoft insider

Posts: 1175
Reputation: 33
37 / Male / Flag
Joined: Jul 2007
Hallo Hamburger,

zu Beginn ein Tipp: dies ist ein vorwiegend englisches Forum. Du wirst also mehr Erfolg haben wenn du Anfragen auf Englisch formulierst...

Du musst innerhalb der Funktion OnEvent_ChatWndReceiveMessage prüfen, ob der Absender der Nachricht (in der Variablen Origin) du selbst bist. In diesem Fall solltest du keine automatische Antwort versenden.
code:
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind) {
    if (Origin == Messenger.MyName) {
        return;
    }
    Debug.Trace("Sende Nachricht");
    ChatWnd.SendMessage("Das ist cool !");
}

Hello Hamburger,

for first, a tip: this is a mostly English forum. You will thus have more success if you type postings in English...

Within the function OnEvent_ChatWndReceiveMessage, you have to check if the sender of the message (in the variable Origin) is you yourself. In this case, you shouldn't send an automatic reply.
code:
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind) {
    if (Origin == Messenger.MyName) {
        return;
    }
    Debug.Trace("Sending message");
    ChatWnd.SendMessage("This is cool !");
}
mynetx - Microsoft, enhanced.

You have a problem or issue with Windows, Internet
Explorer or Office?
Send a tweet!
09-28-2008 04:32 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
- by Hamburger on 09-28-2008 at 03:47 PM
- by djdannyp on 09-28-2008 at 04:10 PM
- by mynetx on 09-28-2008 at 04:32 PM
- by Hamburger on 09-28-2008 at 06:02 PM
- by mynetx on 09-29-2008 at 10:45 AM
- by Hamburger on 09-30-2008 at 12:40 AM


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