What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Two questions: !remotecommand and Messenger.MyContacts

Two questions: !remotecommand and Messenger.MyContacts
Author: Message:
kaourika
Junior Member
**


Posts: 16
Reputation: 1
35 / Female / –
Joined: Jul 2006
O.P. RE: Two questions: !remotecommand and Messenger.MyContacts
Thanks for the help, Markee. =)

I tried putting in function OnEvent_ChatWndReceivedMessage(ChatWnd,Origin,Msg,Kind){ instead, and after doing so, that part of the script completely stops working(!command will simply show up as !command, for both sides of the conversation).
I figured it must be a conflict with some other part of my script, so I systematically removed all of those other parts, and tested without each one, but it didn't fix the problem.

Here is the relevent code section:
code:
    //// Actions
function OnEvent_ChatWndReceivedMessage(ChatWnd,Origin,Msg,Kind){
        if(Message.substr(0,8).toLowerCase()=="!petrafi"){
        nbrPet++;
        var h = Math.floor((Math.random()*(dArray.length-1)));
        return "*" + Messenger.MyName + " pets Rafeal* \n" +dArray[h];
    }
    }
    //// End Actions

There were more !commands, but I temporarily removed them so they wouldn't complicate my diagnosis. Anyway, I can't seem to find the problem with it =/

The display name was indeed what I was after. :D However, with that code, won't it only work with one person, the person whose email I define? If it's possible and not too horribly complex, I was trying to make the script adapt to whoever I was talking to at the time.
12-13-2007 12:31 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Two questions: !remotecommand and Messenger.MyContacts - by kaourika on 12-11-2007 at 08:05 PM
RE: Two questions: !remotecommand and Messenger.MyContacts - by markee on 12-12-2007 at 09:01 AM
RE: Two questions: !remotecommand and Messenger.MyContacts - by kaourika on 12-13-2007 at 12:31 AM
RE: Two questions: !remotecommand and Messenger.MyContacts - by ddunk on 12-13-2007 at 12:40 AM
RE: Two questions: !remotecommand and Messenger.MyContacts - by kaourika on 12-13-2007 at 01:19 AM
RE: Two questions: !remotecommand and Messenger.MyContacts - by pollolibredegrasa on 12-13-2007 at 01:29 AM
RE: Two questions: !remotecommand and Messenger.MyContacts - by kaourika on 12-13-2007 at 01:44 AM
RE: Two questions: !remotecommand and Messenger.MyContacts - by ShawnZ on 12-13-2007 at 01:46 AM
RE: Two questions: !remotecommand and Messenger.MyContacts - by kaourika on 12-13-2007 at 01:55 AM
RE: Two questions: !remotecommand and Messenger.MyContacts - by ShawnZ on 12-13-2007 at 02:31 AM
RE: Two questions: !remotecommand and Messenger.MyContacts - by kaourika on 12-13-2007 at 03:53 AM
RE: Two questions: !remotecommand and Messenger.MyContacts - by markee on 12-13-2007 at 11:12 PM
RE: Two questions: !remotecommand and Messenger.MyContacts - by CookieRevised on 12-13-2007 at 11:41 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