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

Script :Need Some Help
Author: Message:
Volv
Skinning Contest Winner
*****

Avatar

Posts: 1233
Reputation: 31
35 / Male / Flag
Joined: Oct 2004
RE: RE: Script :Need Some Help
quote:
Originally posted by roflmao456
code:
var talk = false;
function OnEvent_ChatWndCreated(Chatwndtest){
talk = true;
}

function OnEvent_ChatWndReceiveMessage(ChatWndtest,Origin,Message,MessageKind){
if (Origin != Messenger.MyName && MessageKind == 1 && talk == true)
{
     merlin.Show(); // Shows Merlin
     sayMessage = Origin + " says: " + Message;
     sayMessage = MsgPlus.RemoveFormatCodes(sayMessage);
     merlin.Speak (sayMessage); // Makes Merlin say the variable
     talk = false;
     }
}

should work

That's not a very good method and in fact will not work in the following scenario:
Person A opens a conversation with you
Person B opens a conversation with you
Person A messages you <-- MSagent will appear as planned
Person B messages you <-- Nothing will happen.

What you would probably need is for the variable talk to be replaced with an array which can be indexed with the window handle or something - that way the Agent will appear for the first message in every conversation window.
05-29-2007 09:52 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Script :Need Some Help - by shadetoll on 05-28-2007 at 07:39 PM
RE: Script :Need Some Help - by roflmao456 on 05-28-2007 at 07:55 PM
RE: RE: Script :Need Some Help - by Volv on 05-29-2007 at 09:52 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