What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » I need a little more help...

I need a little more help...
Author: Message:
dbgtrgr
New Member
*

Avatar
^.^

Posts: 14
33 / Male / –
Joined: Apr 2004
O.P. I need a little more help...
ok, I have a text file that has a line that goes:

<email>begininfo <info><email>endinfo

(Example: example@db.combegininfo w00texample@db.comendinfo)

that way I can search for <email>begininfo to find the beginning of the information, then look for <email>endinfo to find the end of the information so it can extract it.

From what I can tell this script should do the trick... But it's not working right :\

code:
if(Message == '!charname'){
        tf = fso.OpenTextFile(Path, ForReading, true);
        FileInfo = tf.ReadAll();
        tf.Close();
        var Start = FileInfo.indexOf(Contact.Email + 'begininfo');
        Start = Start + Contact.Email.length + 10;
        var End = CharInfo.indexOf(Contact.Email + 'endinfo');
        var Info = FileInfo.substr(Start,End);
        ChatWnd.SendMessage(Info);
}

This post was edited on 07-25-2006 at 10:56 PM by dbgtrgr.
Countdown to Christmas: 6542 days, 21 hours, 30 minutes ago
07-25-2006 10:50 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
I need a little more help... - by dbgtrgr on 07-25-2006 at 10:50 PM
RE: I need a little more help... - by Shondoit on 07-25-2006 at 11:34 PM
RE: I need a little more help... - by dbgtrgr on 07-25-2006 at 11:57 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