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. Two questions: !remotecommand and Messenger.MyContacts
I don't know JS at all, so as a learning experience I just started throwing things together, and naturally I've run into some questions.

First question
The following code works fine when I type !whatevercommand, but I also want my contacts to be able to type !whatevercommand, have the script respond to them, and increment the nbrPoke++.

code:
function OnEvent_ChatWndSendMessage(ChatWnd, Message) {
... there was a lot more in here; I'm just including the relevent stuff...
code:
        if(Message.substr(0,5).toLowerCase()=="!poke"){
        nbrPoke++;
        var z = Math.floor((Math.random()*(xArray.length-1)));
        return "*" + Messenger.MyName + " pokes with a pointy stick* \n" +xArray[z];
    }

Any tips on doing what I need to do? :D

Second question
I can't understand Messenger.MyContacts. For example, here,
code:
aArray[6] = "*" + Messenger.MyName +" attacks " + Messenger.MyContacts + "*";
MyName works fine, but Contacts just produces a blank space.
I read in the documentation that this could happen due to the contact being logged out, but that wasn't the case here.

Thanks for any help :D
12-11-2007 08:05 PM
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