What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » find out exact text of someone's message.. (something like that)

find out exact text of someone's message.. (something like that)
Author: Message:
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: find out exact text of someone's message.. (something like that)
Errr...
code:
        if (sMessage.charAt(0) == '!') {
            if(sMessage.charAt(1) == '!') return sMessage;
            else var parts = sMessage.split(" ");
        }
Also, you don't want to return "Link 1 set to ..." as the replacement of the received message, you want your bot to send it! ;)
code:
            switch (parts[1]) {
                case 'link1' :
                    link1 = parts[2];
                    ChatWnd.SendMessage("Link1 set to "+link1);
                    break;
                case 'link2':
                    link2 = parts[2];
                    ChatWnd.SendMessage("Link2 set to "+link2);
                    break;
                case 'link3':
                    link3 = parts[2];
                    ChatWnd.SendMessage("Link3 set to "+link3);
                    break;
            }
;)

quote:
Originally posted by ash44455666
Edit: just read some of the documentation thingy, and apparently I don't need a .xml file..
Indeed. You only need a ScriptInfo.xml if you want to pacakage and release your script in a .PLSC file. But if you only need the script to run on your side and don't need to send it to someone else, it's perfectly fine to leave the ScriptInfo.xml out. :)

Also, it may help if you enable script debugging in Preferences > General > Scripts and show the script debugging window from the contact list's Scripts button > Script debugging. It may give you information on what line the error occured and what kind of error it is.

This post was edited on 09-01-2007 at 10:13 AM by Matti.
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
09-01-2007 10:05 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
find out exact text of someone's message.. (something like that) - by ash44455666 on 08-31-2007 at 09:17 PM
RE: find out exact text of someone's message.. (something like that) - by foaly on 08-31-2007 at 10:20 PM
RE: find out exact text of someone's message.. (something like that) - by ash44455666 on 08-31-2007 at 10:39 PM
RE: find out exact text of someone's message.. (something like that) - by foaly on 08-31-2007 at 10:41 PM
RE: find out exact text of someone's message.. (something like that) - by ash44455666 on 08-31-2007 at 10:53 PM
RE: find out exact text of someone's message.. (something like that) - by ash44455666 on 08-31-2007 at 11:24 PM
RE: find out exact text of someone's message.. (something like that) - by matty on 08-31-2007 at 11:27 PM
RE: find out exact text of someone's message.. (something like that) - by ash44455666 on 08-31-2007 at 11:32 PM
RE: find out exact text of someone's message.. (something like that) - by Matti on 09-01-2007 at 10:05 AM
RE: find out exact text of someone's message.. (something like that) - by ash44455666 on 09-01-2007 at 07:05 PM
RE: find out exact text of someone's message.. (something like that) - by Matti on 09-02-2007 at 09:22 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